Hi all, I was wondering, how can I get the number of arguments passed to an abstraction ?
Saludos
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
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.
Hallo, Mirko Petrovich hat gesagt: // Mirko Petrovich wrote:
I was wondering, how can I get the number of arguments passed to an abstraction ?
I mean at the creation time. I want to construct a generative abstraction which depends on the number of arguments passed to it.
AFAIK you cannot find out this number at all.
Frank Barknecht _ ______footils.org__