[Issue 20424] A constructor with a value argument of the same type as being constructed should be an error
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Dec 6 09:54:46 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=20424
--- Comment #2 from Walter Bright <bugzilla at digitalmars.com> ---
An object with a copy constructor cannot be blitted into place. (Such is not
allowed in C++, either, and such constructors are rejected by the compiler.)
There is no advantage to doing it anyway over passing by ref.
--
More information about the Digitalmars-d-bugs
mailing list