Re: Make the VM Lua-version-agnostic and modularize
- From: Peter Cawley <corsix@xxxxxxxxxx>
- To: luajit@xxxxxxxxxxxxx
- Date: Thu, 24 Sep 2015 18:36:10 +0100
On Thu, Sep 24, 2015 at 6:30 PM, Soni L. <fakedme+lj@xxxxxxxxx> wrote:
_ENV is already in.
Uh, what? Unless all my senses are lying to me, LuaJIT very much has
the Lua 5.1 semantics of all functions having a special thing called
their environment; you can define a local/upvalue called _ENV, but it
is no different to any other local/upvalue, and the semantics of
global accesses are to go via the special thing called the environment
rather than going via the local/upvalue called _ENV.
Other related posts: