<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Some OOP stuff related to Pd is addressed here:</span></div><div><span>http://artengine.ca/~catalogue-pd/43-Bouchard.pdf</span></div><div><br><span></span></div><div><span>For sharing the same $0</span><span class="tab">: I think my canvas "get" method addresses that.&nbsp; There are probably several ways one <br></span></div><div><span class="tab">could do it.&nbsp; I already have a </span>[send2canvas n] abstraction where n is a float that sets where in the canvas hierarchy <br></div><div>to send to-- so maybe I could also add the possibility to specify a symbolic arg, like [send2canvas foo] so that <br></div><div>[send2canvas] climbs the canvas hierarchy until the "filename" attribute for that canvas is foo.pd.&nbsp; Sending <br></div><div>"get dollarzero" to [send2canvas foo] would output the $0 of the container
 "foo" abstraction, if it exists.</div><div><br></div><div>Then you'd have:</div><div>* [send2canvas 0] -&gt; local to "this" canvas<br></div><div>* [send2canvas foo] -&gt; use this to get a common $0 for some arbitrary level of nested abstractions</div><div>* [send pd-foo.pd] -&gt; send to all instances of "foo" abstraction + any open as toplevel patches</div><div><br></div><div>I imagine [send2canvas foo] as I've just outlined could easily get confused with [send pd-foo.pd], so maybe there's <br></div><div>a better way to make the difference more explicit.<br></div><div><br><span class="tab"></span></div><div><span class="tab">-Jonathan<br></span></div><div><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;">  <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <font
 size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> "abel.jerome@free.fr" &lt;abel.jerome@free.fr&gt;<br> <b><span style="font-weight: bold;">To:</span></b> pd-list@iem.at <br> <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, November 30, 2011 7:31 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> [PD] OOP practices in Pure Data<br> </font> <br>
Hi all,<br><br>All along years of practice, I've developped with Pd as well as object oriented languages.<br>Some methods and designs from OOP (object oriented programming) structure my patches, because I think they are very useful to clear thoughts and share patches. It is sometimes difficult to understand patches from other people, and more difficult when it is a complete project. Therefore I think it's quite "good" to link Pd programming with OOP.<br><br>In the same idea, I like those resources : <br>http://puredata.info/docs/tutorials/TipsAndTricks<br>http://puredata.info/Members/bbogart/pddp<br>http://puredata.info/docs/style-guide<br>http://www.earcatching.com/pdconv/pdconv.pdf<br><br>Sharing practices is also very useful to help eachother and beginners people structure their code (and their thoughts).<br><br>Jerome<br>http://jeromeabel.net<br>_______________________________________________<br><a ymailto="mailto:Pd-list@iem.at"
 href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br><br><br> </div> </div> </blockquote></div>   </div></body></html>