[Issue 21674] [REG v2.086] `alias this` triggers wrong deprecation message on function call
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Mar 3 11:00:35 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=21674
--- Comment #5 from anonymous4 <dfj1esp02 at sneakemail.com> ---
If the compiler can compile it, it doesn't mean it should do so, because
indiscriminate compiling can lead to unintended behavior. AIU issue 19441 is
based on a bug in weka where aliased setter wasn't intended to customize
assignment. There was grumbling about aliased getters too, but they are too
useful and there's nothing to replace them with, but aliased setters duplicate
functionality of opAssign in a sloppy way.
--
More information about the Digitalmars-d-bugs
mailing list