lua-users home
lua-l archive

Re: Simulating Lua states in Lua with only 250 lines of code

[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

AltStyle によって変換されたページ (->オリジナル) /