[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
Wed Feb 28 08:40:31 UTC 2018


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

--- Comment #12 from anonymous4 <dfj1esp02 at sneakemail.com> ---
(In reply to Timothee Cour from comment #11)
> https://github.com/dlang/phobos/pull/6231
I doesn't allow your example though
assert(a.pointer == ptr);  // silently null
assert( &a[0] == ptr);  // would throw bounds error

--


More information about the Digitalmars-d-bugs mailing list