Re:Adding a Python style yield to C++
by zeen on Monday April 26, 2010 @11:51AM
(#1295135)
The code provided isn't storing any internal state (aside from the resume location) as far as I can see. The generator thus generated isn't reentrant and has other flaws, but those pale to nothing when you consider that nothing on the stack is preserved..
[ Parent
| on HN ]
There are no comments on this comment yet.