Generators in D

Sean Kelly sean at invisibleduck.org
Tue May 17 12:21:11 PDT 2011


On May 11, 2011, at 3:09 PM, Piotr Szturmaj wrote:

> %u wrote:
>> On 05/10/2011 07:06 PM, Piotr Szturmaj wrote:
>>> I forgot to ask. Any comments or suggestions?
>> 
>> This is **beast**.
>> 
>> Just one thing: Would it work correctly if I was using fibers in my
>> own code?
> 
> I don't know. If fibers may call other fibers then it should work.

They can.  The only issue to be aware of is that non-shared static data is thread-local, not fiber-local, so some code may exhibit unexpected behavior if not written with fibers in mind.


More information about the Digitalmars-d mailing list