www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2113] New: spec inconsistent with the current d1.0 behavior?

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2113

           Summary: spec inconsistent with the current d1.0 behavior?
           Product: D
           Version: 1.030
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: davidl 126.com


http://www.digitalmars.com/d/1.0/operatoroverloading.html
The assignment operator = can be overloaded if the lvalue is a struct or class
aggregate
for a struct you can't have opAssign overload

seems I always get the following error message:
function testopassign.a.opAssign identity assignment operator overload is
illegal


-- 
May 19 2008
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2113






Can you give an example of the code that gives you that error message?


-- 
Jun 15 2008
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2113


davidl 126.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID





umm, i tried to overload rvalue which can be implicitly converted to the
lvalue.
So it's an invalid bug actually.


-- 
Jun 16 2008