Something needs to happen with shared, and soon.
Walter Bright
newshound2 at digitalmars.com
Wed Nov 14 13:06:24 PST 2012
On 11/14/2012 3:14 AM, Benjamin Thaut wrote:
> A small code example which would break as soon as we allow destructing of shared
> value types would really be nice.
I hate to repeat myself, but:
Thread 1:
1. create shared object
2. pass reference to that object to Thread 2
3. destroy object
Thread 2:
1. manipulate that object
More information about the Digitalmars-d
mailing list