lua-users home
lua-l archive

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


> Is _ENV inherited by functions called from foo()?

No. You're missing that all this is lexical. Function use whatever _ENV
they see at compilation time. (Even if most of the time _ENV is hidden.)