>From http://stackoverflow.com/questions/1383768/cloning-lua-state/1383847
What can an error do inside a coroutine (a lua_State created with lua_newthread), that it could not do inside a lua_State created with lua_newstate?
lua_newthread gives you a garbage collected lua_State with all the globals of your original state. Is this not what you want?
Asko, why would a server want to call lua_newstate or luaL_newstate for each request, instead of lua_newthread?
Please tell me what I'm missing here.