I got a patch that contains and uses an array called "foo". If i want to use several abstractions of it in an other patch, i can't do it because foo is then mulitply defined. Any solutions better than passing a different name for this array to the different abstractions ? This has been discussed here already, but I still don't know how (or if) I can get really local arrays. BR nicolas
You cannot have 2 arrays of the same name on loaded patchers. If you intend to use the same table contents for several different operations use one table (array) and refer to it from your abstractions. If your abstractions with table "foo" are supposed fill their respective tables with different values then you need give them different names. The best way to make sure that you have no duplicate names in your tables within abstraction is to make your table have a variable name that you set with arguments to your patcher.... Is that clear enough? I just got up not too long ago and I'm still on my first coffee.
./MiS
============================ "To be is to do" - Socrates "To do is to be" - Sartre "Do be do be do" - Sinatra "Just do it!" - NIKE "It" - Stephen King
On 8/13/01 8:55 PM, "Nicolas Lhommet" nlhommet@netcourrier.com wrote:
I got a patch that contains and uses an array called "foo". If i want to use several abstractions of it in an other patch, i can't do it because foo is then mulitply defined. Any solutions better than passing a different name for this array to the different abstractions ? This has been discussed here already, but I still don't know how (or if) I can get really local arrays. BR nicolas
Nicolas Lhommet hat gesagt: // Nicolas Lhommet wrote:
I got a patch that contains and uses an array called "foo". If i want to use several abstractions of it in an other patch, i can't do it because foo is then mulitply defined. Any solutions better than passing a different name for this array to the different abstractions ? This has been discussed here already, but I still don't know how (or if) I can get really local arrays.
Would the table object with $0-names help:
[table $0-array] gets a unique name in every subpatch.
__ __
Frank Barknecht ____ ______ ____ __ trip\ \ / /wire ______
/ __// __ /__/ __// // __ \ / / __ \ ___\
/ / / ____/ / / / // ____// /\ \ ___\____ \
/_/ /_____/ /_/ /_//_____// / \ \_____\_____
/_/ _\