[PD] errors are not always fatal (was Re: Using [import])

Hans-Christoph Steiner hans at eds.org
Mon Sep 15 17:39:08 CEST 2008


On Sep 15, 2008, at 3:41 AM, IOhannes m zmoelnig wrote:

> IOhannes m zmoelnig wrote:
>>
>> well, yes and now.
>> as said above, there is always the fallback thing.
>> having [import mrpeach] without a "mrpeach" directory will (at the
>> worst) give you a warning (or error?). nevertheless Pd will still  
>> find
>
> just to re-stress this: an error does not always make your patch  
> unusable!
> i have done plenty of patches that happily lived witherrors (while  
> ugly,
> they were expected)
>
> to remove the ugliness, it would be nice to have a (built in!) way to
> "try" instantiating an object.
> like
> [try { import mrpeach } catch {}]
>
> (with the catch-clause defining an alternative object to be  
> instantiated)
>
>
> mgasdr
> IOhannes

Interesting idea, ideally it would be done without adding new  
syntax.  Perhaps if you were able to test if an object can be  
instantiated, then you could use that info to dynamically patch  
things depending on the setup.

.hc


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

As we enjoy great advantages from inventions of others, we should be  
glad of an opportunity to serve others by any invention of ours; and  
this we should do freely and generously.         - Benjamin Franklin






More information about the Pd-list mailing list