[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: How to "reset" the Lua environment?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 25 Jan 2006 13:09:03 -0200
> > You could create a new environment for each
> > script to run, and
> > then discard the environment after running the
> > script.
>
> That's exactly what I would like to avoid.
I think he really means an environment, not a state. An environment is
set with lua_setfenv. You can set the new environment to inherit from
the old one. The keyword here is "sandbox"...