
10 Jan
2005
10 Jan
'05
5:10 p.m.
"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