[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 12:35:20 UTC 2018


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

--- Comment #13 from Steven Schveighoffer <schveiguy at yahoo.com> ---
(In reply to anonymous4 from comment #12)
> I doesn't allow your example though

How so? The example is showing that when printf sees 0 as a length, it ignores
the pointer. In his use case, the call to printf is @safe (note that even
allowing the pointer call in safe code doesn't fix the fact that printf is
@system anyway).

In any case, the PR was shot down by both Walter and Andrei.

--


More information about the Digitalmars-d-bugs mailing list