lua-users home
lua-l archive

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

On 2010-01-09, Mark Hamburg <> wrote:
>  I will say that I can appreciate the desire to deprecate setfenv and getfenv.
> There is a highly-legitimate use for setfenv with respect to sandboxing,
> but this can better be dealt with as part of the load process.

As it was mention in other postings it is very convenient to load a
chunk just *once* and call it later multiple times with different
environments to achieve different results. I am not sure whether such
a trick will work with "in" construct.