[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Continuations
On Wed, 13 Aug 2003, Steven Shaw wrote:
> Generators (like in Sather) are something I've always wanted in a
> language-I-get-to-use-at-work. I've been reading how they can be
> defined in Scheme using first-class continuations.
Actually, continuations are overkill for generators. All you really need
are coroutines, which can be simulated in C and C++ with the help of some
macros. Check it out:
http://www.kimbly.com/blog/000054.html