[Issue 14283] [2.067-b4]: Spurious "this is not an lvalue" deprecation message for "auto ref" arguments
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Mar 15 09:06:10 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14283
--- Comment #2 from Martin Nowak <code at dawg.eu> ---
It could be a bad idea to handle 'this' as lvalue (with deprecation) but infer
and rvalue for auto ref. Also it required quite some hacking. I think a better
choice is to keep it as lvalue but omit the deprecation message for auto ref
parameters.
In both cases I hardly expect any code breakage, as passing 'this' to an auto
ref parameter hardly comprises the intent to change the this pointer.
--
More information about the Digitalmars-d-bugs
mailing list