[Issue 11176] array.ptr in @safe code
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Jun 7 20:37:43 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=11176
Walter Bright <bugzilla at digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugzilla at digitalmars.com
--- Comment #17 from Walter Bright <bugzilla at digitalmars.com> ---
There is another way:
b.ptr // unsafe
&b[0] // safe - because array bounds checking will verify you have a good
pointer
--
More information about the Digitalmars-d-bugs
mailing list