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

RazvanN <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from RazvanN <[email protected]> ---
This seems to be done on purpose, see this comment:
https://issues.dlang.org/show_bug.cgi?id=7579#c5 .

In short, if you concatenate a struct instance with a disabled postblit you
subject yourself to the possibility of the runtime doing copies behind your
back (for example, when reallocations happen). This seems pretty nasty because
the alternative would be to accept this code and then either do copies that do
not call the postblit behind the scenes or have some druntime internal failures
(provided that the hooks are properly templated).

--

Reply via email to