<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">> [declare]<br clear="none"><div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" id="yui_3_16_0_ym19_1_1480700730944_3086" style="display: block;"><div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1480700730944_3085"><div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1480700730944_3084"><div class="y_msg_container" id="yui_3_16_0_ym19_1_1480700730944_3083"><div id="yui_3_16_0_ym19_1_1480700730944_3363"><br></div><div>How does [declare -lib foo] in current Pd Vanilla compare to [import foo] in <br></div><div>Pd-extended?</div><div><br></div><div>In Pd-extended, [import foo] will:</div><div dir="ltr">a) look for foo.pd_linux (or whatever extensions) to load from searchpaths</div><div dir="ltr">b) look for foo.pd to load from searchpaths</div><div dir="ltr">c) run the libdir_loader and look for a directory named "foo" that has a "foo-meta.pd" <br></div><div dir="ltr">patch inside it.</div><div dir="ltr"><br></div><div dir="ltr">I like "c" because it could easily be changed to load that foo-meta.pd file the same <br></div><div dir="ltr">way the hidden pd-_float gets added.  That would be useful for singletons, esp. for <br></div><div dir="ltr">data structures.<br></div><div dir="ltr"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1480700730944_3579">-Jonathan<br></div></div> </div> </div>  </div></div></body></html>