guile-user
[Top][All Lists]
Advanced

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

Re: about coroutines


From: mibin
Subject: Re: about coroutines
Date: Thu, 06 Dec 2001 02:07:26 +0100

>>>>> "Keith" == Keith Wright <address@hidden> writes:
  >> From: Michele Bini <address@hidden>

  >> I think that there is a problem with storing continuations for
  >> coroutines in lexically scoped (non-global) variables or passing
  >> them as arguments or as return values,

  Keith> Well, there is not _always_ a problem, since the Knuth
  Keith> co-routine example I posted, and which does work, uses
  Keith> nothing but non-global variables.  The whole program is a
  Keith> single function definition with local variables. 

Right.  The problem i encountered with my initial test programs (some
of which worked correctly under other implementations) was probably
due to their arrangement, (the task switcher was tail-calling itself
with continuations of execution points).

                Michele



reply via email to

[Prev in Thread] Current Thread [Next in Thread]