[Issue 18529] .ptr on arrays can no longer be used in @safe code prevents valid code

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Feb 27 08:58:47 UTC 2018


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

--- Comment #3 from anonymous4 <dfj1esp02 at sneakemail.com> ---
---
int[]a=[0,1];
auto b = a[0..0];
a.length=0;
a.assumeSafeAppend;
assert(a[0..0] is b);
---
Would this work?

--


More information about the Digitalmars-d-bugs mailing list