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

12345swordy alexanderheistermann at gmail.com
Wed Oct 2 17:56:39 UTC 2019


On Wednesday, 2 October 2019 at 17:51:09 UTC, Atila Neves wrote:
> 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 
> core.atomic.

Why can't it import core.atomic automatically then?

-Alex


More information about the Digitalmars-d mailing list