[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 10:18:40 UTC 2018


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

--- Comment #6 from anonymous4 <dfj1esp02 at sneakemail.com> ---
(In reply to Timothee Cour from comment #0)
> // from core.demangle
> printf( “shifting (%.*s)\n”, cast(int) val.length, val.ptr );
> compiler issues error: Error: val.ptr cannot be used in @safe code, use
> &val[0] instead
That's issue 18407

--


More information about the Digitalmars-d-bugs mailing list