Thread overview |
---|
May 20, 2008 [Issue 2113] New: spec inconsistent with the current d1.0 behavior? | ||||
---|---|---|---|---|
| ||||
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 -- |
June 16, 2008 [Issue 2113] spec inconsistent with the current d1.0 behavior? | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2113 ------- Comment #1 from bugzilla@digitalmars.com 2008-06-15 23:46 ------- Can you give an example of the code that gives you that error message? -- |
June 16, 2008 [Issue 2113] spec inconsistent with the current d1.0 behavior? | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2113 davidl@126.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Comment #2 from davidl@126.com 2008-06-16 11:31 ------- umm, i tried to overload rvalue which can be implicitly converted to the lvalue. So it's an invalid bug actually. -- |
Copyright © 1999-2021 by the D Language Foundation