[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: questions about closure construction
- From: Finn Wilcox <finnw@...>
- Date: Tue, 19 Mar 2013 18:05:27 +0000
On 19/03/2013 07:47, steve donovan wrote:
>
> I believe Lua 5.2 has made some progress in re-using closures that
> have no upvalues. LuaJIT may well optimize it to nothing ;)
>
No it cannot, because of getfenv and setfenv.
http://lua-users.org/lists/lua-l/2010-05/msg00617.html