digitalmars.D.bugs - [Issue 5277] New: Member functions that modify its own state wrongfully marked as strongly pure.
- d-bugmail puremagic.com (27/27) Nov 26 2010 http://d.puremagic.com/issues/show_bug.cgi?id=5277
- d-bugmail puremagic.com (10/10) Nov 26 2010 http://d.puremagic.com/issues/show_bug.cgi?id=5277
- d-bugmail puremagic.com (7/7) Nov 26 2010 http://d.puremagic.com/issues/show_bug.cgi?id=5277
- d-bugmail puremagic.com (13/13) Nov 26 2010 http://d.puremagic.com/issues/show_bug.cgi?id=5277
http://d.puremagic.com/issues/show_bug.cgi?id=5277 Summary: Member functions that modify its own state wrongfully marked as strongly pure. Product: D Version: D2 Platform: Other OS/Version: All Status: NEW Severity: blocker Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: ibuclaw ubuntu.com Consider: struct Foo { uint num = 0; void incNum() pure nothrow{ num++; } } incNum gets marked as PUREstrong, when I feel that it should really be PUREweak as it clearly has side effects. Regards -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 26 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5277 Jonathan M Davis <jmdavisProg gmx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jmdavisProg gmx.com PST --- -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 26 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5277 I would consider it the same issue. At least, Don's patch in the other report seems to fix it. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 26 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5277 bearophile_hugs eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bearophile_hugs eml.cc Resolution| |DUPLICATE Then let's close this one as dupe. *** This issue has been marked as a duplicate of issue 5191 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 26 2010