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