|
Ben Sunshine-Hill wrote:
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
-- // David Morris-Oliveros // Camera & Lua Coder // Team Bondi ------------------------------------------------------------------------ Contact: Team Bondi Pty Ltd Level 2, 608 Harris Street Ultimo, NSW 2007 Australia Tel: +61 (0)2 8218 1500 Fax: +61 (0)2 8218 1507 Web: http://www.teambondi.com ------------------------------------------------------------------------ This email may contain confidential information. If you are not the intended recipient, you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Opinions, conclusions and other information in this message that do not relate to the official business of our firm shall be understood as neither given nor endorsed by it. ------------------------------------------------------------------------