[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Coroutine environment
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 13 Jun 2006 19:57:52 -0300
> 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