----- Original Message -----
> From: IOhannes m zmoelnig <[email protected]>
> To: [email protected]
> Cc: 
> Sent: Thursday, November 17, 2011 3:33 AM
> Subject: Re: [PD] "get" method for Pd
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On 2011-11-17 02:43, Jonathan Wilkes wrote:
>>  I made a patch awhile back that added a "get" method to pd:
>> 
>>  [; pd get version rcv-name( sends "version $major $minor 
> $bugfix"  to rcv-name
> [...]
>> 
> 
> wouldn't it be easier to use a syntax like
> [get <rcvname> <attribute>( ?
> rather than [get <attribute> <rcvname>(
> 
> i think sending the rcvname first will make the syntax more easily
> extendible.
> e.g. it would allow for [tryset <rcvname> <attribute> 
> <values...>( and
> the like.

I really want to avoid that syntax because while it may be the most 
flexible for the current Pd implementation (e.g., one without a list atom) 
it's clearest to have "get" followed directly by the thing being "gotten".

Maybe I can sidestep the issue by suggesting just to send the result 
back to the "pd" symbol by forwarding it using an added "state" method 
that does nothing:

[loadbang]
|
[; pd get dsp(

[r pd]
|
[route state]
|
[route dsp]
|
[set $1(
|
[0(

Added benefit is that you can also state a message to pd using the "state" 
method, and all pd receivers will be notified.

-Jonathan

> 
> madf
> IOhannes
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iEYEARECAAYFAk7ExsQACgkQkX2Xpv6ydvRm7gCcCY+tuCG95nwLHoOw7nm46zdl
> gEEAoI57wflBh6egv1Vh5WlQ3PVC3VGV
> =wHPp
> -----END PGP SIGNATURE-----
> 
> 
> _______________________________________________
> [email protected] mailing list
> UNSUBSCRIBE and account-management -> 
> http://lists.puredata.info/listinfo/pd-list
>

_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to