lua-users home
lua-l archive

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


> >      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"...