[Issue 17448] Move semantics cause memory corruption and cryptic bugs

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 17 20:39:02 UTC 2021


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

thomas.bockman at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thomas.bockman at gmail.com

--- Comment #39 from thomas.bockman at gmail.com ---
Is this resolved by DIP 1018's copy constructors,
    https://github.com/dlang/DIPs/blob/master/DIPs/accepted/DIP1018.md
    https://dlang.org/spec/struct.html#struct-copy-constructor
And the pseudo-deprecation of postblits?
    https://dlang.org/spec/struct.html#struct-postblit

I'm asking because someone on the forums told me not to trust copy constructors
to work correctly, and linked me here. Are copy constructors broken too, or
just legacy postblits? Are postblits even still broken? If so, shouldn't they
be officially deprecated?

--


More information about the Digitalmars-d-bugs mailing list