Array access via pointer

BCS none at anon.com
Sun May 30 15:08:37 PDT 2010


Hello robert,

> But
> of course resizing and reallocation would be a bit more complicated.

and it would make slicing impossible:


int[] a, b;

a.length = 10;
a[5] = 1;
b = a[5..10];

assert(b[0] == 1);
b[0] = 5;
assert(a[5] == 5);



> 
-- 
... <IXOYE><





More information about the Digitalmars-d mailing list