[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: A review of changes between 5.1 and 5.2-work3
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 20 May 2010 16:46:36 -0300
> Luiz Henrique de Figueiredo wrote:
> >No. You're missing that all this is lexical. Function use whatever _ENV
> >they see at compilation time. (Even if most of the time _ENV is hidden.)
>
> I suspect I'll have some major redesign to do. It was good while it
> lasted :-)
It is not difficult to write a "good enough" setfenv for Lua functions
using the debug library, if that is what you really want.
-- Roberto