[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Environment in coroutines
- From: Ben Sunshine-Hill <sneftel@...>
- Date: Wed, 10 Aug 2005 01:17:14 -0700
On 8/10/05, David Morris-Oliveros <email@example.com> 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.