lua-users home
lua-l archive

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


> 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