<html><head></head><body><div class="yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;"><br><div><div id="ydpfef1e789yiv5124687581"><div><div dir="ltr"><div class="ydpfef1e789yiv5124687581gmail_quote"><div class="ydpfef1e789yiv5124687581gmail_attr" dir="ltr">Em qui., 21 de jan. de 2021 às 14:33, Alexandre Torres Porres <<a shape="rect" href="mailto:porres@gmail.com" rel="nofollow" target="_blank">porres@gmail.com</a>> escreveu:<br clear="none"></div><br><div>> hmm, here's something I wasn't thinking, how to allow one to use the system inside abstractions.</div><div><br></div><div dir="ltr" data-setdir="false">IIRC, the symbolic name given as an argument to preset_hub sets the scope for all the preset_node objects with the same name in that canvas (or inside any child abstractions, so long as they don't include their own preset_hub inside with the same name). So basically the same way 'var' sets scope in Javascript. That's why "$0" isn't needed.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Digression-- there's also a new [ab] class in Purr Data which saves abstractions with the parent file, and it uses a "canvas private" scoping mechanism so that "$0" isn't needed. (Although in that case, file-level abstractions are in their own scope for the sake of sanity.)</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">I find it really handy and would like to find a way to make struct names similarly scoped. (Perhaps with a flag.)</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">-Jonathan<br></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><br></div></div></div></div></div></div>
            </div><div id="ydpfef1e789yahoo_quoted_1682060839" class="ydpfef1e789yahoo_quoted">
        </div></div></body></html>