Summary: "this" in classes should not an lvalue
           Product: D
           Version: D1 & D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from John Mandeville <> 2010-09-05 09:05:44 
PDT ---
"this" is treated as an lvalue.  For classes, it should
be an rvalue.  In particular, the following absurdity
compiles in v1.063 and v.2.047 but should not.

class Yikes
    int i;
    this() { this = null; }

void main()
    auto y = new Yikes();

See also discussion at

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to