lua-users home
lua-l archive

Re: setfenv/getfenv

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


On 2010年1月12日 17:25:36 +0200, Roberto Ierusalimschy <roberto@inf.puc-rio.br> 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?

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