In C one can do the following: # define N 10
double M[N][N]; In D I would like to achieve the same result. I tried with: mixin("int N = 10;"); double[N][N] M;but the compiler (DMD) complained with Error: variable N cannot be read at compile time.
What am I doing wrong?