[Issue 3672] read-modify-write (rmw) operators must be disabled for shared

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 23 17:28:10 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=3672



--- Comment #3 from Andrei Alexandrescu <andrei at erdani.com> 2013-03-23 17:28:09 PDT ---
I've had a discussion with Walter in which we agreed that atomic increment
should NOT be generated implicitly for shared variables. Herb Sutter also
agrees that C++11 made a mistake adding the sugar to atomic<T> and recommends
using named functions.

Code using operands with shared data should not compile. Named functions should
provide the appropriate primitives.

There is no issue of code breakage because the code listed was behaving
incorrectly to start with.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list