Boost logo

Boost :

From: Pavel Vozenilek (pavel_vozenilek_at_[hidden])
Date: 2005-01-10 12:10:31


"Daniel James" wrote:

[coroutines]
> A while ago I wrote a library which did something similar for C++ and
> allowed the 'coroutines' to recurse, have parameters and local variables
> (which aren't easy because they have to be stored between calls and can't
> be defined inside a switch statement) and be members of a class. But I was
> never very happy with it, mainly because the implementation involves some
> pretty messy preprocessor metaprogramming and the coroutines had to be
> written using a strange macro based language,

[snip code]

> If anyone's interested I'll make the code available.
Yes, me is.
/Pavel


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk