Bug 18665 – Deprecate Undocumented Operator Overloads

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-03-26T16:58:05Z
Last change time
2020-03-21T08:51:45Z
Keywords
pull
Assigned to
No Owner
Creator
Seb
See also
https://issues.dlang.org/show_bug.cgi?id=12462

Comments

Comment #0 by greensunny12 — 2018-03-26T16:58:05Z
Looks like DMD supports explicitly overloading ~ with opCom: https://github.com/dlang/dmd/blob/25bc0213a7455b8ccbb9a4cc869c86ecc24c6777/src/dmd/expression.d#L5756 - It's only used on std.bitmanip - It's not mentioned in the spec - It doesn't appear on Google This should be deprecated in favor of opUnary
Comment #1 by jack — 2018-03-26T17:07:08Z
The following should also be deprecated: opPos opNeg opAdd opAdd_r opSub opSub_r opMul opMul_r opDiv opDiv_r opMod opMod_r opAnd opAnd_r opOr opOr_r opXor opXor_r opShl opShl_r opShr opShr_r opUShr opUShr_r opCat opCat_r
Comment #2 by dlang-bot — 2019-07-05T04:13:30Z
@JinShil updated dlang/dmd pull request #10130 "Fix Issue 18665 - Deprecate Undocumented Operator Overloads" fixing this issue: - Fix Issue 18665 - Deprecate Undocumented Operator Overloads https://github.com/dlang/dmd/pull/10130
Comment #3 by dlang-bot — 2019-07-08T03:13:21Z
dlang/dmd pull request #10130 "Fix Issue 18665 - Deprecate Undocumented Operator Overloads" was merged into master: - fcbbfe3f544e56e1ac7f04bf6e44c4c7eb2712e3 by JinShil: Fix Issue 18665 - Deprecate Undocumented Operator Overloads https://github.com/dlang/dmd/pull/10130
Comment #4 by dlang-bot — 2020-01-15T08:54:27Z
dlang/dmd pull request #10716 "Revert "Fix Issue 18665 - Deprecate Undocumented Operator Overloads"" was merged into master: - 750ed116aa51cd78f0380097ed7f26be502320d7 by Walter Bright: Revert "Fix Issue 18665 - Deprecate Undocumented Operator Overloads" https://github.com/dlang/dmd/pull/10716
Comment #5 by dlang-bot — 2020-01-15T14:38:15Z
dlang/dmd pull request #10725 "Give D2-style operator overload priority over D1-style, reinstate the latter's deprecation" was merged into master: - 6a4a2d5ffd7577beb7ae997064652e670bff6856 by Mathias LANG: Revert "Revert "Fix Issue 18665 - Deprecate Undocumented Operator Overloads"" https://github.com/dlang/dmd/pull/10725
Comment #6 by pro.mathias.lang — 2020-03-21T08:51:45Z
The revert has been reverted.