array questions

yes yes at no.com
Sun Jan 11 14:17:54 PST 2009


Hello again

is it possible to make a dynamic array less dynamic?

int[][] array;

array[0].length = 10; //has to be set at runtime
writefln(array[1].length); // writes also 10

Because I now have to loop through the whole array to check for correct size.


also, can this be done?

int size;
size = 10; //runtime
void function( int[size][] array){}

thank you





More information about the Digitalmars-d-learn mailing list