<br><br><div class="gmail_quote">On Sat, Oct 31, 2009 at 7:00 PM, Hans-Christoph Steiner <span dir="ltr"><<a href="mailto:hans@at.or.at">hans@at.or.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
On Oct 30, 2009, at 10:24 PM, Ivica Ico Bukvic wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hey Ivica,<br>
<br>
Just make it a global, that's the easiest. Or use namespaces and<br>
namespace variables.<br>
<br>
.hc<br>
</blockquote>
<br>
I am not all that good with tk. Only learned what I had to to hack<br>
together better version of <a href="http://pd.tk" target="_blank">pd.tk</a>. Any examples would be most<br>
appreciated. How do namespaces work?<br>
<br>
Also, after opening tons of windows that generate global variables,<br>
doesn't this effectively produce a minor but nonetheless present memory<br>
leak as the global variables will be hard to trace when deallocating<br>
those windows (see my other email re: improvements)?<br>
<br>
Ico<br>
</blockquote>
<br>
Look at the new pd-gui-rewrite branch, it uses namespaces a fair amount. They are a bit overcomplicated in Tcl, but you don't have to use the complicated parts.<br>
<br>
.hc<br>
<br>
</blockquote></div><br>Hans, when you have a few minutes can you just sum up quickly how does it go with namespaces? I've familiarized easy with everything else in the sources, but i couldn't get namespaces do anything (thus my tabbed-console plugin doesn't see the popupmode setting). <br>
<br>Btw, i would be happy to clean up pdtk_post as suggested by the comments, but i have questions:<br>- "this should be switchable between Pd window and stderr": how do you imagine this; a command line switch or from preferences...?<br>
- you mentioned you would shift popupmode to a plugin, is it ok if i give it a shot?<br><br clear="all">Andras<br>