Why is &array[0] @safer than array.ptr?

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jan 25 14:54:32 PST 2017


On Wednesday, 25 January 2017 at 22:46:10 UTC, David Nadlinger 
wrote:
> This is because every pointer in SafeD is dereferencable.

But null pointers are allowed in SafeD and arr.ptr is either 
arr[0] or null....



More information about the Digitalmars-d-learn mailing list