Re: Applicable structs and vtables

2021-08-14 Thread tomas
On Sat, Aug 14, 2021 at 09:19:49AM +, Zelphir Kaltstahl wrote: > Hi Tomas! > > Ultimately I need the minimum and maximum arity of functions [...] It seems that the second number in `procedure-minimum-arity's result is the number of optional arguments (cf. `define*'). Since Guile 2.0, optional

Re: Applicable structs and vtables

2021-08-14 Thread Zelphir Kaltstahl
Hi Tomas! Ultimately I need the minimum and maximum arity of functions (not sure if anything in between is needed, but I think not). Minimum and knowing, that rest arguments exist is not sufficient. The exact maximum number of arguments is what I require, even if it turns out to be infinity or som

Re: Applicable structs and vtables

2021-08-13 Thread tomas
On Fri, Aug 13, 2021 at 08:33:33PM +, Zelphir Kaltstahl wrote: > Hi Guile users, > > I have some code, in which I wrap procedures in a record, which contains > members, which express the arity of the procedures. For example one struct be: > > I don't know whether what you're after is about