[Issue 7075] overloading opAssign for classes is poorly specified
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Wed Dec  7 07:47:00 PST 2011
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=7075
Steven Schveighoffer <schveiguy at yahoo.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|accepts-invalid             |
                 CC|                            |schveiguy at yahoo.com
            Summary|overloading opAssign for    |overloading opAssign for
                   |class is allowed            |classes is poorly specified
--- Comment #2 from Steven Schveighoffer <schveiguy at yahoo.com> 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
illegal
There are several other places in the spec that could be better written.
-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
    
    
More information about the Digitalmars-d-bugs
mailing list