Re: Environment in coroutines
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Environment in coroutines
- From: Ben Sunshine-Hill <sneftel@...>
- Date: 2005年8月10日 01:17:14 -0700
On 8/10/05, David Morris-Oliveros <david@teambondi.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.
Ben