[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [C API] Can I delete a chunk from my lua_State?
- From: David Favro <lua@...>
- Date: Mon, 03 Mar 2014 11:16:28 -0500
On 03/03/2014 07:36 AM, Felipe Ferreira da Silva wrote:
Thank you, guys.
As Kevin stated, I will try recreating the lua state.
Another option is to load and execute the user script in an environment; the
user can then modify "global" variables as they wish, yet you can discard
the effects without destroying the entire lua_State. You will probably want
to provide an API to the user script within its environment.