|
No, _ENV of the caller would give you access to globals of the caller. All problems persist, just getfenv would be implemented differently.If I'm understanding correctly, being able to access the _ENV of your caller, and its caller, etc would basically give you the same thing you can do now with a debug.getlocal loop, but more conveniently - it'd still have the tail call issue, no?
-- Best regards, Sergey Rozhenko mailto:sergroj@mail.ru