[Issue 4756] New: core.atomic should have atomicOp!"="
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Aug 29 08:47:52 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4756
Summary: core.atomic should have atomicOp!"="
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: druntime
AssignedTo: sean at invisibleduck.org
ReportedBy: dsimcha at yahoo.com
--- Comment #0 from David Simcha <dsimcha at yahoo.com> 2010-08-29 08:47:38 PDT ---
This is technically an enhancement, but it severely limits the usability of
core.atomic and seems like a pretty silly omission. The following code needs
to work:
int num = 1;
atomicOp!"="(num, 2); // Atomically set num to 2.
--
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