I think he rather means:
array a = allocate(10); a = a[..-3];
or so.
/ David Hedbor
Previous text:
2003-04-02 08:12: Subject: ... and thanks for all the fish
:-)
negative indices in arrays
Negative indices in arrays sounds horrible. Wasn't it in (some) Pascal or something you could decide what indices your array had?
Array my_array[1..4]={1,2,3,4}; Array my_array[0..3]={1,2,3,4}; Array my_array[-1..2]={1,2,3,4};
Although it could be a nice, truly obfuscating feature. :-)
/ Mirar