|
Am 27.12.2014 um 22:32 schröbte Mark Hamburg:
[...] That said, for maximum interop, you start to want a mechanism for doing labeled resume/yield pairs so that the yield will propagate out to the right point.
The issue of labeled/tagged yields came up a few weeks ago on stackoverflow[1], where someone wanted to use iterators implemented via `coroutine.wrap` and Copas in the same program. This result was a nice little module[2].
Mark
Philipp [1]: http://stackoverflow.com/questions/27123966/lua-nested-coroutines [2]: https://github.com/saucisson/nested-coroutines