[Issue 11176] array.ptr in @safe code

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Oct 5 17:30:00 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=11176



--- Comment #4 from David Nadlinger <code at klickverbot.at> 2013-10-05 17:29:59 PDT ---
@J(In reply to comment #3)
> An interesting side note to marking .ptr on arrays as unsafe would be that it
> would make it kind of pointless to mark a lot of C functions as @trusted

I think you are missing something here: A C function taking an array by pointer
and length or a pointer to a zero-terminated array can never be @trusted.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list