D1 operator overloads have been deprecated.
Basile B.
b2.temp at gmx.com
Thu Jul 11 20:29:19 UTC 2019
On Thursday, 11 July 2019 at 17:58:50 UTC, uranuz wrote:
> In change log of nightly builds I see that:
> `D1 operator overloads have been deprecated`
> The major concern about it is that D2 style operators are
> template functions. And template functions cannot be virtual.
Nice catch...
> Does it mean that we shall not be able to decalare operators in
> classes and interfaces that could be overloaded in terms of OOP.
It rather looks like a big whoopsie. Nobody has thought to this
case during the review stage[1]. I don't know if the change would
have been accepted otherwise, even if they were not documented
anymore.
[1] https://github.com/dlang/dmd/pull/10130
More information about the Digitalmars-d
mailing list