<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1462718609444_8014" dir="ltr">> So basically [declare] only was "allowed" in a toplevel patch.</div><div id="yui_3_16_0_ym19_1_1462718609444_8259"><br></div><div id="yui_3_16_0_ym19_1_1462718609444_8257">You write as if you aren't a time traveler.</div><div id="yui_3_16_0_ym19_1_1462718609444_8475"><br></div><div id="yui_3_16_0_ym19_1_1462718609444_8477" dir="ltr">[declare] has had this behavior for at least a decade.  That's more than <br></div><div id="yui_3_16_0_ym19_1_1462718609444_8479" dir="ltr">enough time for the ninjas to test and package it up to use in the manner <br></div><div id="yui_3_16_0_ym19_1_1462718609444_8481" dir="ltr">described by the OP.</div><div id="yui_3_16_0_ym19_1_1462718609444_8773" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1462718609444_9492" dir="ltr">What is the cost of leaving a hook for functionality that has value to the community?  (I count two documented uses on the list, both geared toward <br></div><div id="yui_3_16_0_ym19_1_1462718609444_9516" dir="ltr">a larger community of users.)  If the cost is old lines of code and a creator/flag, <br></div><div id="yui_3_16_0_ym19_1_1462718609444_9518" dir="ltr">it should remain. If it's substantially greater than that, I'd be interested to here the technical argument for removing it.<br> </div><div id="yui_3_16_0_ym19_1_1462718609444_8285"><br></div><div id="yui_3_16_0_ym19_1_1462718609444_9520" dir="ltr">Keep in mind there are way more obscure old code paths-- [template], for example...<br></div><div><br></div><span id="yui_3_16_0_ym19_1_1462718609444_7289"></span><div id="yui_3_16_0_ym19_1_1462718609444_7692" dir="ltr"><span id="yui_3_16_0_ym19_1_1462718609444_7289">-Jonathan<br></span></div><div class="qtdSeparateBR"><br><br></div><div style="display: block;" class="yahoo_quoted"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font face="Arial" size="2"> On Sunday, May 8, 2016 5:56 AM, Frank Barknecht <fbar@footils.org> wrote:<br></font></div>  <br><br> <div class="y_msg_container">On Sun, May 08, 2016 at 12:09:04AM +0000, Jonathan Wilkes via Pd-list wrote:<br clear="none">> Hi Jerome,If you're saying that your patches used to work and they now break, <br clear="none">> do file a bug about it.  Others on the list have mentioned using <br clear="none">> [declare] for this purpose-- I never have but it's a reasonable use case.<br clear="none"><br clear="none">Using [declare] in abstractions has never been an encouraged practice,<br clear="none">The 0.41 helpfile includes this warning:<br clear="none"><br clear="none">'WARNING: you might want to avoid putting "declare"<br clear="none">statements inside abstractions, as their effects will extend<br clear="none">to the calling patch. As of version 0.41, "declare path" is<br clear="none">ignored inside abstractions, although, probably unwisely,<br clear="none">"-stdpath" takes effect (on the calling patch as well as the<br clear="none">abstraction.)'<br clear="none"><br clear="none">So basically [declare] only was "allowed" in a toplevel patch.<br clear="none"><br clear="none">I think it is was wise, that the confusing side effect of<br clear="none">[declare] "extending to the calling patch" was removed.<br clear="none"><br clear="none">Ciao<br clear="none">-- <br clear="none"> Frank Barknecht                                     _ ______footils.org__<div class="yqt9520072526" id="yqtfd50557"><br clear="none"><br clear="none">_______________________________________________<br clear="none"><a shape="rect" ymailto="mailto:Pd-list@lists.iem.at" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br clear="none">UNSUBSCRIBE and account-management -> <a shape="rect" href="https://lists.puredata.info/listinfo/pd-list" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br clear="none"></div><br><br></div>  </div> </div>  </div></div></body></html>