lua-users home
lua-l archive

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


> Probably something like 5.1's setfenv()/getfenv(), but with bytecode
> instead?

In 5.1, the environment has a fixed location (a field in the closure
structure). In 5.2/5.3, the environment is the current _ENV, which
can be any upvalue or local variable.

-- Roberto