Hi -
var Inner = A[1..9];
I think earlier emails said it is done as a shallow copy.
That copies the array elements, so I wouldn't call it a shallow copy.
ref aliasing = A[1..9];
would alias the other array. It creates an array slice descriptor (the A[1..9]
part does) a
var Inner = A[1..9];
I think earlier emails said it is done as a shallow copy.
What is the true overhead of this? I assume it is much more than pointing
inside an array because it has to be able to deal with non-unit strides or
am I over-complicating/over-simplifying it?
Regards - D