Unofficial wish list status.(Jul 2008)

Walter Bright newshound1 at digitalmars.com
Wed Jul 2 22:40:04 PDT 2008


Me Here wrote:
> Walter Bright wrote:
>> There's nothing about D 2.0 which would prevent you from doing this. D 2.0 is
>> still a systems programming language which will let you do whatever you want
>> with your data.
> 
> So, in D2, if a pass an slices of an array to several threads and they mutate
> those slices, when the threads end, the main thread can see (and further
> manipulate) the results of their work by simply iterating the original array?

Yes, but the onus will be on you (the programmer) to prevent data races 
and do proper synchronization.   You have to be very wary of cache 
effects when writing data in one thread and expecting to see it in another.



More information about the Digitalmars-d mailing list