On Mon, 2025-03-17 at 09:52 +0100, ngraves--- via General Guile related discussions wrote: > Hi Guile! > > Is there a way to get the default arguments of an unknown procedure ? > > More precisely, a function defined with define* is able to > set its default arguments through #:key keywords. I'm looking for a > procedure that returns an alist of those predefined default arguments, > given the function.
Probably not in a portable fashion. But GNU guile is free software, so you could hack something. Functions are technically implemented as closures (except the primitive ones). And R5RS permit you to define syntactic macros, so you could define yours (I recommend to name it otherwise, eg. my-define*) to do the job. Regards from near Paris, France PS My open source project is GPL licensed and an inference engine, RefPerSys. If you have students interested, please let them contact me. -- Basile STARYNKEVITCH <bas...@starynkevitch.net> 8 rue de la Faïencerie http://starynkevitch.net/Basile/ 92340 Bourg-la-Reine https://github.com/bstarynk France https://github.com/RefPerSys/RefPerSys