Hallo, Peter Worth hat gesagt: // Peter Worth wrote:
If i have an abstraction with an array in it, is there any way for the data to be saved in any parent patch which instantiates the abstraction, rather than in the abstraction itself? in my main patch i want lots of copies of the abstraction each with different data.
What I would do is to move the array out of the abstraction into the parent and pass its name as abstraction argument. Example:
This is in abstract.pd:
[tabread $1]
and in parent.pd you pass the array name into $1:
[table t1] [abstract t1]
[table t2] [abstract t2]
[table t3] [abstract t3]
[table t4] [abstract t4]
Frank Barknecht _ ______footils.org_ __goto10.org__