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

--- Comment #1 from Denis Shelomovskij <[email protected]> ---
The reason is in case there is no postblit `_d_arraycopy` (which enforces
arrays don't overlap [1]) is called for copying and if there is a postblit
`_d_arrayassign` (which allows overlapping arrays [2]) is called.

[1]
https://github.com/D-Programming-Language/druntime/blob/a8c74e00fe21e7781bc6d6fa1773c12b7a1e63b7/src/rt/arraycat.d#L26
[2]
https://github.com/D-Programming-Language/druntime/blob/a8c74e00fe21e7781bc6d6fa1773c12b7a1e63b7/src/rt/arrayassign.d#L28

--

Reply via email to