> The old Lua 5.0 manual in Threads section says following: > > http://www.lua.org/manual/5.0/manual.html#3.20 > > Each thread has an independent global environment table. When you create a > thread, this table is the same as that of the given state, but you > can change each > one independently. > > I can't find anything confirming this neither in the new 5.1 manual, > nor in the PiL I book. Is it correct that Lua makes copy of global > environment for each coroutine thread, or coroutines use exactly the > same environment they were created in? See http://www.lua.org/manual/5.1/manual.html#lua_newthread