Release D 2.079.0

psychoticRabbit meagain at meagain.com
Tue Mar 6 05:34:39 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.


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





More information about the Digitalmars-d-announce mailing list