http://d.puremagic.com/issues/show_bug.cgi?id=3672
Summary: read-modify-write (rmw) operators must be disabled for
shared
Product: D
Version: unspecified
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Andrei Alexandrescu <[email protected]> 2010-01-04
08:51:32 PST ---
shared int x;
void main()
{
x++;
}
This compiles but it shouldn't. For a shared word-sized object, only reading
and writing it are allowed, as well as shared and synchronized calls where
applicable.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------