[Issue 19430] wrong code for `this =`, corrupted memory issue

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Nov 24 16:41:46 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=19430

--- Comment #10 from Stanislav Blinov <stanislav.blinov at gmail.com> ---
To be fair, calling assignment on an instance that hasn't been yet constructed
(i.e. constructor didn't return) isn't the best of ideas. I know Phobos is
doing this in places, but it's something that should really, really be avoided.

--


More information about the Digitalmars-d-bugs mailing list