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

Hans-Christoph Steiner hans at at.or.at
Sat Nov 28 20:04:08 CET 2009


On Nov 25, 2009, at 1:50 AM, Frank Barknecht wrote:

> Hallo,
> Roman Haefeli hat gesagt: // Roman Haefeli wrote:
>
>> I wonder, what makes one any smarter. It doesn't make you any  
>> smarter, when
>> knowing about all the underlying mechanisms and special cases of  
>> Pd, it only
>> makes you know more. However, it *would* you make smarter, if you  
>> would be
>> able to apply your current experiences on new cases, that you haven't
>> experienced before, for instance: you found, that [route] strips the
>> selector off the message 'list one two' and 'hallo velo', so that  
>> you would
>> naturally assume, that [route] would strip off any selector.  
>> However, it
>> doesn't,  which makes you have to learn every single case separately.
>
> Of course you have to learn every single object behaviour  
> separately! There's
> no way around it. [prepend] in Cyclone is different from [list  
> prepend], and
> that's by design, not a bug (as symbol-selector handling in [route]  
> might be).
>
> But to be able to understand what makes them different, you have to  
> understand
> at least a little bit about the anatomy of Pd's messages and ideally  
> even how
> messages with different selectors call different methods of a Pd  
> object.
> Explaing this makes you smarter. And then being smarter can help  
> with the
> tedious task of memorizing object behaviours (or knowing when to  
> look them up).
> Or it will make you add a [list trim] in front of most [route]  
> objects.  (Btw.:
> all_about_data_types.pd doesn't have a single [list trim] inside ...)

Add something about [list trim].  :)  all_about_data_types is older  
than than the list object.

.hc


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

Terrorism is not an enemy.  It cannot be defeated.  It's a tactic.   
It's about as sensible to say we declare war on night attacks and  
expect we're going to win that war.  We're not going to win the war on  
terrorism.        - retired U.S. Army general, William Odom






More information about the Pd-list mailing list