On Fri, 27 Jul 2012 21:31:08 +0200
"Stuart" <[email protected]> wrote:

> On Friday, 27 July 2012 at 19:12:41 UTC, H. S. Teoh wrote:
> >
> > an implicit context-switch between two fibers
> 
> I've just looked up "fiber" and "coroutine". Sounds like a very 
> useful concept. As previously stated, VB.NET iterators implement 
> coroutines WITHOUT fibers; but I can see where fibers would be 
> useful.
> 
> What is the recommended way to implement coroutines in D? More 
> RANGE stuff?

In D, coroutines are implemented by using Fiber:
http://dlang.org/phobos/core_thread.html#Fiber

Reply via email to