lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

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].