<html><body><div id="edo-message"><div></div>Hi Ben,</div><div id="edo-message"><br></div><div id="edo-message">Yes, I have a solution. For reference, I was unaware that method instances are named with local variables in expression ASTs, while instances and other top-level bindings are - so the solution is to add those Ids to the environment before loading the expression, which isn’t necessary for other top-level bindings that are sourced from the CgGuts cg_binds.</div><div id="edo-message"><br></div><div id="edo-message">Cheers,</div><div id="edo-message">Josh</div><div id="edo-original"><div><br><blockquote type="cite" style="margin:1ex 0 0 0; height: min-content; border-left:1px #ccc solid;padding-left:0.5ex;"><div>On Feb 27, 2021 at 7:34 am, <<a href="mailto:ben@smart-cactus.org">Ben Gamari</a>> wrote:<br><br></div><div>Josh Meredith <joshmeredith2008@gmail.com> writes:
> Hi,
> I'm trying to use initIfaceLoad and initIfaceLcl to lookup core `Name`s
> within a plugin. My understanding is that functions such as
> `lookupIfaceTop` are used for this, but I'm running into an issue that I
> suspect is caused by some `Name`s being inappropriate for this function, so
> they fail with the error `Iface id out of scope: ...`.
>
> Is there a robust way to select which `Name` lookup function to use based
> on a core binding/expression?
>
Josh, did you ever get an answer here?
Cheers,
- Ben
</joshmeredith2008@gmail.com></div></blockquote></div></div><style hint="edo">#edo-signature img {max-width: 90%}</style></body></html>