lua-users home
lua-l archive

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


On Fri, Feb 26, 2010 at 3:18 PM, Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br> wrote:
>> In some cases (metaprogramming comes to mind), it could be useful to
>> make the lexical scope (hence the current environment in 5.2)
>> available to the evaluated string too.
>>
>> Something like loadin(1,"some code")
>
> loadin(_ENV,"some code")

Ah, but would that include the _lexical_ environment, i.e the locals
as well? I thought not.