DIP 1024--Shared Atomics--Community Review Round 1
Walter Bright
newshound2 at digitalmars.com
Fri Oct 4 03:35:45 UTC 2019
On 10/2/2019 10:21 AM, 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?
>
Yes. The trouble stems from the DIP being originally written to apply shared
semantics to operators. This was changed to be function only, and some vestiges
of the original remain. Hence the confusion.
More information about the Digitalmars-d
mailing list