Re: Recipe: setfenv with Lua 5.2.0 work3
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Recipe: setfenv with Lua 5.2.0 work3
- From: Roberto Ierusalimschy <roberto@...>
- Date: 2010年5月20日 13:43:52 -0300
> 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