shared - i need it to be useful
Atila Neves
atila.neves at gmail.com
Thu Oct 18 17:47:26 UTC 2018
On Thursday, 18 October 2018 at 17:43:40 UTC, Steven
Schveighoffer wrote:
> On 10/18/18 1:17 PM, Atila Neves wrote:
>> On Monday, 15 October 2018 at 18:46:45 UTC, Manu wrote:
>>> 1. shared should behave exactly like const, except in
>>> addition to inhibiting write access, it also inhibits read
>>> access.
>>
>> How is this significantly different from now?
>>
>> -----------------
>> shared int i;
>> ++i;
>
> i = i + 1; // OK(!)
>
> -Steve
Sigh... I'm sure there's a practical reason for it, but still.
More information about the Digitalmars-d
mailing list