[PD] Finding "$0" and dealing with it in messages

Hans-Christoph Steiner hans at at.or.at
Sat Nov 14 18:30:18 CET 2009


On Nov 14, 2009, at 12:17 PM, IOhannes m zmölnig wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> IOhannes m zmölnig wrote:
>> Hans-Christoph Steiner wrote:
>>
>>> messages:
>>> - $$ provides unique ID number
>>> - $# provides argument count from incoming message
>>> - $@ provides the list of arguments from incoming message
>>
>>> objects:
>>> - $$ provides unique ID number
>>> - $# provides argument count from incoming message
>>> - $@ provides the list of arguments from incoming message
>>
>>> Now, all we need is someone to code  it :) I am certainly willing  
>>> to try
>>
>> i thought i had committed such a patch about 3 years ago to the sf  
>> patch
>> tracker.
>
>
> http://sourceforge.net/tracker/?func=detail&aid=1543850&group_id=55736&atid=478072
>
> i don't know how well this works for with the new dollarg-expansion  
> code
> (within symbols, not only at the beginning).
> and anyhow it is unclear what "bla-$@-blu" really means.

> as for $$ being available in messages: i don't think this can easily
> be done the way things are right know.
>
> and really, i don't think it is that important :-)

I think this never got included because it didn't play nice with the  
new dollar arg expansion code.  So this patch at this point serves as  
a starting point for developing this.

As for what "bla-$@-blu" means, it doesn't matter as long as $$, $@,  
and $# are clearly defined.  By bash rules, that would give you "bla- 
my list of words-blu".

.hc

>
>
> mfgasdr
> IOhannes
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkr+5jYACgkQkX2Xpv6ydvQYYQCgjd2KBA8CqWC5fUcGLUdOMn2J
> +AQAoPN6GqUvAu6NmWKgOx5PU0cWdx59
> =F53w
> -----END PGP SIGNATURE-----



----------------------------------------------------------------------------

Information wants to be free.    -Stewart Brand






More information about the Pd-list mailing list