lua-users home
lua-l archive

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

On Tue, 12 Jan 2010 17:25:36 +0200, Roberto Ierusalimschy <> wrote:

We tried to restrict such uses. Basically, if you create a new function,
you can set its environment. Otherwise, the function itself should be
responsible for its own environment (using lexical environments).

Could environment be implemented as an unnamed upvalue?