Impressed

Nick Sabalausky SeeWebsiteToContactMe at semitwist.com
Fri Jul 27 13:26:33 PDT 2012


On Fri, 27 Jul 2012 21:31:08 +0200
"Stuart" <stugol at gmx.com> 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



More information about the Digitalmars-d mailing list