[PD-dev] abstractions polluting their parent patch

Roman Haefeli reduzent at gmail.com
Fri Jan 15 22:00:34 CET 2016


On Fri, 2016-01-15 at 16:01 +0000, Jonathan Wilkes wrote:
> Wrt #N struct:
> 
> 
> Data structures have three components: drawing commands, [struct]
> templates, and 
> scalars.  They can get loaded in any order in a running instance of
> Pd.  Also, [struct] 
> templates can depend on other [struct] templates.
> 
> 
> Polluting the parent with structs found inside the children guarantees
> that everything 
> will load with the correct data and display properly every time,
> without crashing.  
> Unfortunately this adds complexity to data structures.  You now have
> this "shadow" 
> struct floating around that has no fields associated with it (which
> itself can cause 
> crashes). 

Can it?

>  But doing it the "right way" probably involves something like higher
> order 
> functions, or promises, or something else that is overkill for a
> feature that apparently 
> only two people in the community use.

I see. Thanks for the explanation. 

Roman

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20160115/a5a7c73e/attachment.sig>


More information about the Pd-dev mailing list