Something needs to happen with shared, and soon.

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Wed Nov 14 14:24:35 PST 2012


On 11/14/12 1:06 PM, Walter Bright wrote:
> 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

That should be disallowed at least in safe code. If I had my way I'd 
explore disallowing in all code.

Andrei


More information about the Digitalmars-d mailing list