Unofficial wish list status.(Jul 2008)

BCS ao at pathlink.com
Wed Jul 2 15:22:36 PDT 2008


Reply to Me,

> 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.
> 

unless, the threads extend the slice. :(





More information about the Digitalmars-d mailing list