Without D1-style operator overloads, the `in` operator for classes doesn't make sense
Steven Schveighoffer
schveiguy at gmail.com
Mon Jan 6 22:09:53 UTC 2020
On 1/6/20 1:22 PM, Steven Schveighoffer wrote:
> This is actually a bug IMO. If you define opBinaryRight!"in", then
> opIn_r (yes, I got that wrong in the example) should not be used by the
> compiler. opIn_r after all is a valid function name, and there's no
> reason it needs to be marked as deprecated if not called via the operator.
>
> If not filed, someone should file it. Same goes for all the D1 operators.
https://issues.dlang.org/show_bug.cgi?id=20486
-Steve
More information about the Digitalmars-d
mailing list