DIP 1024--Shared Atomics--Community Review Round 1

Atila Neves atila.neves at gmail.com
Wed Oct 2 17:51:09 UTC 2019

On Wednesday, 2 October 2019 at 17:21:59 UTC, Manu wrote:
> On Wed, Oct 2, 2019 at 2:10 AM Walter Bright via Digitalmars-d 
> <digitalmars-d at puremagic.com> wrote:
>> On 10/1/2019 11:30 PM, Manu wrote:
>> > I'm confused, which is it, A or B? I presume B, and my prior 
>> > commentary applies.
>> A
> In that case, I don't understand the only code shown in the 
> DIP; you show freely reading from and assigning to a shared 
> int... that should be an error, and there should be 
> atomicLoad/astomicStore in those locations?

My understanding is that the compiler rewrites that code to use 

More information about the Digitalmars-d mailing list