[PD-dev] pd.tk question

Hans-Christoph Steiner hans at at.or.at
Fri Oct 30 16:12:49 CET 2009


Hey Ivica,

Just make it a global, that's the easiest.  Or use namespaces and  
namespace variables.

.hc

On Oct 29, 2009, at 12:08 PM, Ivica Ico Bukvic wrote:

> Hi all,
>
> Is there a way to declare a variable within a proc scope so that it  
> can
> be referenced later externally? e.g. having $name.something in
> pdtk_canvas_new linked to a widget can be easily referenced later from
> another function (e.g. this is how scrollbars work). However if I want
> to declare a generic variable that is linked to the same scope (e.g.  
> set
> $name.somevar 1), I cannot figure out how to reference this thing back
> from a different scope.
>
> Any ideas?
>
> Best wishes,
>
> Ico
>
>
> _______________________________________________
> Pd-dev mailing list
> Pd-dev at iem.at
> http://lists.puredata.info/listinfo/pd-dev



----------------------------------------------------------------------------

Looking at things from a more basic level, you can come up with a more  
direct solution... It may sound small in theory, but it in practice,  
it can change entire economies.     - Amy Smith






More information about the Pd-dev mailing list