Steven Schveighoffer <> changed:

           What    |Removed                     |Added
           Keywords|accepts-invalid             |
                 CC|                            |
            Summary|overloading opAssign for    |overloading opAssign for
                   |class is allowed            |classes is poorly specified

--- Comment #2 from Steven Schveighoffer <> 2011-12-07 
07:46:59 PST ---
No, the code isn't invalid, the documentation is just bad.

identity assignment overloading is not allowed for classes, that is what the
table is alluding to:

class A
   void opAssign(A a) {}

Error: function testassign.A.opAssign identity assignment operator overload is

There are several other places in the spec that could be better written.

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

Reply via email to