Can anyone point me in the right direction for doing something like this in D:

    char[][] anArray;
    int rows, cols;

    ...

    anArray = new char[rows][cols];

It isn't possible in this way because "rows cannot be read at compile time", which seems to me to be the point of dynamic arrays. :P

Reply via email to