[PD-dev] $0 in messages, was: multiple $arg-expansion

Thomas Grill gr at grrrr.org
Sun Jan 15 11:48:59 CET 2006


Am 15.01.2006 um 10:22 schrieb IOhannes m zmoelnig:

> IOhannes m zmoelnig wrote:
>>
>> however, i think that "$0" is a bad name.
>> i would have liked it better if $0 was the selector (in messages) and 
>> the classname (in abstractions).
>> probably "$$" would have been better for a uniq id (well, i know that 
>> this is a bashism (its the process-id in bash), but that is not 
>> necessarily bad)
>
> forgot to add that these are just thoughts that will never 
> (probability=99.9%) be implemented in pd, since the names have been 
> there for quite some times, and this change would break an awful lot 
> of patches.
> it's a pity.
>
> but i would still like to have the possibilities to get the selector 
> of a message (as a symbol) and to get the classname of an abstraction.
>
> of course we could just use "$$" for *that* (but it would be no 
> bashism any more)

I think nothing would be broken if $0 in messages means the canvas ID. 
So far $0 in messages hasn't been used, or has it?
To my mind that would be a fairly clear extension.

best greetings,
Thomas





More information about the Pd-dev mailing list