Simply put, all variables are global. In objects (not messages), use $0 as part of the variable name to give it an unique identifier. Within your patch, anywhere you use $0, it is the same number.
$0 generated when the patch is created and is different for every instance of a patch. There's lots of good stuff in the archives on this subject and I think "locality" tutorials.
Chuck
On Mon, Feb 23, 2009 at 5:40 PM, mbutubuntu mbutubuntu@yahoo.it wrote:
Hello Pd Folks!!!
I need a little help....
in general the object [s foo] sends values or messages to a global variable named "foo"... is there in Pd a way to make the variable "foo" private ??? (working only in a subpatch)...
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list