Release D 2.079.0

Martin Nowak code at dawg.eu
Tue Mar 6 19:44:00 UTC 2018


On Tuesday, 6 March 2018 at 05:22:58 UTC, Void-995 wrote:
> Can somebody explain how &array[0] is more safe than array.ptr? 
> Just want to understand why second statement isn't allowed in 
> safe anymore.

&array[0] is runtime bounds-checked
array.ptr is unchecked and might return an out-of-bounds pointer 
(to the first element)


More information about the Digitalmars-d-announce mailing list