I wish all qualifiers were revisited with an eye for simplification
uplink.coder at googlemail.com
Mon Aug 3 01:43:48 UTC 2020
On Monday, 3 August 2020 at 01:23:26 UTC, Andrei Alexandrescu
> On 8/2/20 6:55 PM, Stefan Koch wrote:
> Sadly no: https://run.dlang.io/is/etdPtP
> Yes, the intent was generous. The realization, not quite.
> However, I did learn from Walter that a number of invalid
> operations on shared numerics have now been disabled. However,
> copying a shared int into an int is allowed and as far as I
> know with no special treatment:
> At least on ARM that should generate a read barrier.
No it should not.
With the right -preview switch it won't compile.
The programmer is to ensure that atomics or other needed
syncronisation primitives are used.
More information about the Digitalmars-d