[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: The removal of function environments: An opportunity for	optimization?
 
- From: Roberto Ierusalimschy <roberto@...>
 
- Date: Mon, 24 May 2010 14:12:35 -0300
 
> In fact I don't quite understand what _ENV is.
> 
> function f1()
>   return f2()
>     _ENV = {}
>   end
> end
> 
> Would execution of f2 lead to a change in _ENV of f1? If _ENV is a
> regular upvalue that may be shared, then it would.
_ENV is a regular variable (and so a regular upvalue that may be
shared). Then it does.
-- Roberto