[PD-dev] argc&argv and dollarexpansion

IOhannes m zmoelnig zmoelnig at iem.at
Tue Aug 22 09:13:36 CEST 2006


IOhannes m zmoelnig wrote:
> just to revive this discussion:
> i have submitted a patch to the tracker, which enables the expansion of 
> $# (argc) and $@ (argv).
> 
> [$#( could be considered as an implementation of [list length] (and vice 
> versa)

which basically means, that [$#( is redundant, as soon as there is a 
[list lenght]. the latter would be more robust regarding incoming messages.
i just did it for completeness.

> 
> $@ is more useful, as it allows you to pass variable argument lists to 
> nested abstractions.
> all other implementations i could think of have the problem that they 
> only work with 1st level abstractions, like iemlib's [dollarg].

which makes me think, that $@ is really a MUST.


mfg.asdf
IOhannes




More information about the Pd-dev mailing list