lua-users home
lua-l archive

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


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.