[PD] dealing with arguments and inlets
Hans-Christoph Steiner
hans at eds.org
Sun Feb 5 22:29:49 CET 2006
On Feb 5, 2006, at 4:01 PM, IOhannes m zmoelnig wrote:
> Mathieu Bouchard wrote:
>> On Sun, 5 Feb 2006, Hans-Christoph Steiner wrote:
>>
>>
>>>> Now tell me, why do you like $# and $@ over [patcherargs] ?
>>>
>>> Languages that provide arguments generally provide argc and argv. I
>>> think Pd
>>> should too.
>>> C, C++ has argc, argv
>>> Java has args.getLength, String[] args
>>> bourne shell has $#, $@
>>> C shell has $#argv, $argv
>>> Perl has $#argv, @argv
>>
>>
>> It could be an object class called [args] too, no? (I don't like the
>> name
>
>
> btw, there is an object [dollarg] in iemlib that does exactly this.
$# and $@ would also be useful in messages. But I suppose [arguments]
could handle argc and argv, and be a C object. It could output a list
of the arguments from the left inlet and the number of arguments from
the right inlet.
.hc
________________________________________________________________________
____
¡El pueblo unido jamás será vencido!
More information about the Pd-list
mailing list