lua-users home
lua-l archive

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

On 8/10/05, David Morris-Oliveros <> wrote:
> So i guess it that both coroutines share the environment where 'i' is
> stored, or am i doing something wrong when i'm newing the coroutines?

That's correct. Coroutines share the same environment, until you tell
them not to. Personally, I prefer this behavior; just use local
variables for coroutine-specific state.