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: nob...@puremagic.com
        ReportedBy: ibuc...@ubuntu.com


--- Comment #0 from Iain Buclaw <ibuc...@ubuntu.com> 2010-11-26 09:11:35 PST ---
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: -------

Reply via email to