[PD] list of creation arguments

Hans-Christoph Steiner hans at at.or.at
Wed Apr 29 16:05:31 CEST 2009


On Apr 29, 2009, at 6:24 AM, Chris McCormick wrote:

> Hi Jonathan,
>
> On Sun, Apr 26, 2009 at 11:47:46PM -0700, Jonathan Wilkes wrote:
>> Hi list,
>>     Here's a pd-vanilla subpatch that outputs an abstraction's  
>> creation
>>     arguments as a list.  Just copy and paste "pd arguments" to your
>>     abstraction and it should work.  It will output a single bang  
>> only if no
>>     creation arguments are supplied, so you can check whether they  
>> exist or
>>     not.  I offer it as a kind of condensed alternative to Matt  
>> Barber's
>>     approach that was posted awhile back (which I cannot find at the
>>     moment).
>
> Whoa, this is pretty intense dynamic patching-fu. I'm really  
> impressed! Thx for
> sharing.

It is a nice hack.  That reminds me, wasn't there a patch (as in a  
diff of C code) to add $# and $@ to Pd's object argument handling?   
That would make this stuff much easier...

.hc

> Chris.
>
> -------------------
> http://mccormick.cx
>
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list



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

Mistrust authority - promote decentralization.  - the hacker ethic






More information about the Pd-list mailing list