Michal Seta wrote:
Mirko Petrovich prab@terra.cl writes:
Hi all, I was wondering, how can I get the number of arguments passed to an abstraction ?
you mean when you want to use an undocumented abstraction and its usage is not clear?
If so, open it and look for $n variables within _objects_. $0 will be a unique argument generated automatically, $1, $2...$n will represent arguments that a user should provide ($1 = first argument, $2 = second argument etc).
And the same logic applies if you want to create abstractions that require arguments...
HTH
I mean at the creation time. I want to construct a generative abstraction which depends on the number of arguments passed to it.