lua-users home
lua-l archive

Re: Recipe: setfenv with Lua 5.2.0 work3

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


> For me, it's definitely "code as usual", though I can certainly live with
> 
> do local _ENV = e; f() end
> 
> In my adventure-book "Medusa" compiler, I execute user-written
> functions multiple times in slightly different environments that are
> passed around.
As answered in another message, neither _ENV nor "in do end" will work
in your example.
-- Roberto

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