Matthias Pleh:
> So I solved it with:
>
> void bar(char* buf, int width, int height)
>
> Good old C :)
Most times this is not a good D solution :-(
This compiles (but it created a new instantiation of bar for each different input matrix):
void bar(int N, int M)(int[N][M] buf) {}
void main() {
int[4][4] m;
bar(m);
}
Bye,
bearophile