shared - i need it to be useful
Timon Gehr
timon.gehr at gmx.ch
Thu Oct 18 23:47:56 UTC 2018
On 18.10.18 20:26, Steven Schveighoffer wrote:
>>
>> i = 1;
>> int x = i;
>> shared int y = i;
>
> This should be fine, y is not shared when being created.
>
> However, this still is allowed, and shouldn't be:
>
> y = 5;
>
> -Steve
I'm pretty sure you will have to allow operations on shared local
variables. Otherwise, how are you ever going to use a shared(C)? You
can't even call a shared method on it because it involves reading the
reference.
More information about the Digitalmars-d
mailing list