lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



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?

No, _ENV of the caller would give you access to globals of the caller. All problems persist, just getfenv would be implemented differently.

--
Best regards,
Sergey Rozhenko                 mailto:sergroj@mail.ru