On 3/1/18 11:48 AM, ag0aep6g wrote:
On 03/01/2018 04:34 PM, David Nadlinger wrote:
On Thursday, 1 March 2018 at 14:54:41 UTC, Shachar Shemesh wrote:
I.e. - is it well defined to copy between overlapping slices?

No: https://dlang.org/spec/arrays.html#overlapping-copying

Does that mean it has undefined behavior and should not be allowed in @safe code?

No, it means it's a runtime error.

https://run.dlang.io/is/xdiKxx

-Steve

Reply via email to