[Issue 19441] alias this causes partial assignment
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Feb 12 16:14:10 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=19441
--- Comment #9 from Andrei Alexandrescu <andrei at erdani.com> ---
Talked to Razvan, and we're thinking of the following minimally disruptive
change:
* If the struct has only ONE member of type T && the alias this yields a ref T
pass
* Else
issue a deprecation
This keeps legit cases working and disallows mistakes.
--
More information about the Digitalmars-d-bugs
mailing list