Re:Adding a Python style yield to C++
by te0006 on Monday April 26, 2010 @11:45AM
(#1295121)
This implementation: http://www.terrainformatica.com/index.php/?p=98 is even more portable, by applying some brutal but standards-compliant abuse to the switch statement.
The price is that you cannot have another switch statement within your generator. Well, you can live with that if you still have some spare if/then/else constructs in your basement.
[ Parent
| on HN ]
There are no comments on this comment yet.