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)

Reply via email to