Bug 10320 – Warning for old-style operator overloading methods definition

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-06-10T04:49:26Z
Last change time
2020-05-18T12:30:29Z
Assigned to
No Owner
Creator
bearophile_hugs
See also
http://d.puremagic.com/issues/show_bug.cgi?id=9257

Comments

Comment #0 by bearophile_hugs — 2013-06-10T04:49:26Z
I suggest to introduce a warning that lists all the usages of the old-style operator overloading. (Later they will become deprecated, and then they will be removed (or conditionally compiled out for D2 if you want to keep the code for D1 for some more time)). Rationale: to simplify the D2 compiler.
Comment #1 by bearophile_hugs — 2013-07-02T01:01:58Z
Cases like in this thread show that it's important to give a warning now: http://forum.dlang.org/thread/[email protected]
Comment #2 by monarchdodra — 2013-07-02T04:51:42Z
(In reply to comment #1) > Cases like in this thread show that it's important to give a warning now: > > http://forum.dlang.org/thread/[email protected] Related (but not duplicate) is also Issue 9257 - [ER] New optional "operator" keyword to validate magic functions http://d.puremagic.com/issues/show_bug.cgi?id=9257 And associated discussion: http://forum.dlang.org/thread/[email protected]
Comment #3 by bearophile_hugs — 2014-04-22T20:08:11Z
See also issue 12617
Comment #4 by pro.mathias.lang — 2020-05-18T12:30:29Z