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.


int[] a;
writeln(&arr[0]); // good - runtime produces a core.exception.RangeError
//writeln(arr.ptr); // what do you think will happen here?



Reply via email to