[PD-dev] how to access literal $args in constructor?

Mike McGonagle mjmogo at gmail.com
Tue Sep 30 21:59:44 CEST 2008


No, basically, it sounds like you are doing this...

[myobj $1]

in one instance... and

[myobj $2]

in another instance...

You already know what the number of the parameter you are looking for, so
why not do this...

[myobj 1 $1]

[myobj 2 $2]

May not be the most elegant, but...

Mike

On Tue, Sep 30, 2008 at 2:00 AM, IOhannes m zmoelnig <zmoelnig at iem.at>wrote:

> Mike McGonagle wrote:
>
>> If you are already putting the "literal" argument in the creation args,
>> then
>> why not just make another creation argument that shadows the dollar
>> argument?
>>
>
> i am not sure whether i fully understand what you mean.
> do you mean i should use something like "$*1" (or "#1" or something else
> that does not get munged by Pd's parser) instead of or in additional to my
> args?
>
>
> fgmasdr
> IOhannes
>



-- 
Peace may sound simple—one beautiful word— but it requires everything we
have, every quality, every strength, every dream, every high ideal.
—Yehudi Menuhin (1916–1999), musician
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20080930/31b59806/attachment.htm>


More information about the Pd-dev mailing list