Unofficial wish list status.(Jul 2008)

Me Here p9e883002 at sneakemail.com
Wed Jul 2 15:03:58 PDT 2008


Walter Bright wrote:

> Me Here wrote:
Replicating entire arrays everytime something mutates an
> > element within it, is a complete nonsense. It basically throws away the
> > very advantage of having shared memory in the first place. And shared
> > memory is the very reason detre of threading.
> 
> 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?

b.
-- 




More information about the Digitalmars-d mailing list