On Fri, 27 Jul 2012 21:17:10 +0200 "Stuart" <stu...@gmx.com> wrote:
> On Friday, 27 July 2012 at 19:12:41 UTC, H. S. Teoh wrote: > > > > I'm pretty sure Yield has a performance hit as well, 'cos it > > amounts to an implicit context-switch between two fibers. > Someone linked to an article which explained that .NET coroutines work, not by using fibers, but by translating the coroutine's source code into an equivalent switch-driven state machine. Pretty cool, actually. > Unless I'm sorely mistaken, Yield has bugger-all to do with > fibers. I say again: I'm not talking about threading. Fibers aren't threading.