
19 Jun
2005
19 Jun
'05
10:49 a.m.
Tobias Schwinger wrote:
Andy Little wrote:
"Tobias Schwinger" <tschwinger@neoscientists.org> wrote
Ah - thanks! We'll want to use this instead of function_type_arity, so default arguments work. Adding an assertion that the arity of the function is greater or equal to the number of elements in the tuple would be nice.
Unfortunately because its a pointer to a function it wont handle the default args, at least not in my test above. (OTOH this sounds reasonably sensible)
<WHUMMM>Stupid me</WHUMM>
Of course!
You can, however, check if it's a variadic function pointer and in this call allow any number of tuple elements.... Regards, Tobias