[dmd-concurrency] std.concurrency

Sean Kelly sean at invisibleduck.org
Mon Mar 8 22:37:59 PST 2010


On Feb 24, 2010, at 12:29 AM, Igor Lesik wrote:

> Sean, I think your implementation of receive() has some imperfections, which I fixed and it works now all right.
> 
>> Most importantly, this still doesn't work: receive( (int a) {}, (string b) {} );
>> The compiler still "sticks" on the type of the first delegate in the foreach ...
> That is very true, but we can iterate over T instead of ops, which is even better idea.
> 
>> Once this is fixed I'll add checking for overload conflicts in the receive set, etc.
> "receive( (int a) {}, (string b) {} );" works now, we can continue

Okay, I checked in the first cut of this module.  It still lacks receiveTimeout and receiveOnly, but plain old send/receive are in place.  I'll see about improving it over then next N days.


More information about the dmd-concurrency mailing list