On Thu, May 19, 2011 at 10:51 PM, Patrick Donnelly <batrick@batbytes.com> wrote: > >From the main thread (with no running functions): > lua_replace(L, LUA_ENVIRONINDEX); Surely things will break if you use LUA_ENVIRONINDEX with no running functions?