void main() { foo; } void foo() @safe { int[] array; auto ptr = array.ptr; }
foo.d(7): Deprecation: array.ptr cannot be used in @safe code, use &array[0] instead
&array[0] is incredibly ugly and feels like an unnecessary hack, and I'm wondering why it's @safe.
Atila