shared - i need it to be useful
Steven Schveighoffer
schveiguy at gmail.com
Thu Oct 18 17:43:40 UTC 2018
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
More information about the Digitalmars-d
mailing list