lua-users home
lua-l archive

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


* Stuart P. Bentley:

> Also, don't all functions still have an _ENV upvalue? (Unless all
> upvalues can be from higher lexical scopes.)

Yes, but that's not a problem because it is the same for all functions
in a chunk.  You can still move the function to the toplevel, even if
it references globals.