D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 10320 - Warning for old-style operator overloading methods definition
Summary: Warning for old-style operator overloading methods definition
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 enhancement
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-10 04:49 UTC by bearophile_hugs
Modified: 2020-05-18 12:30 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description bearophile_hugs 2013-06-10 04:49:26 UTC
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 bearophile_hugs 2013-07-02 01:01:58 UTC
Cases like in this thread show that it's important to give a warning now:

http://forum.dlang.org/thread/hwfzaysrfxiiumppxwkt@forum.dlang.org
Comment 2 monarchdodra 2013-07-02 04:51:42 UTC
(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/hwfzaysrfxiiumppxwkt@forum.dlang.org

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/iubdngjksicwxugrqesc@forum.dlang.org
Comment 3 bearophile_hugs 2014-04-22 20:08:11 UTC
See also issue 12617
Comment 4 Mathias LANG 2020-05-18 12:30:29 UTC
Deprecated in https://github.com/dlang/dmd/pull/10725