why no implicit convertion?

bearophile bearophileHUGS at lycos.com
Wed Nov 17 14:46:23 PST 2010

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;


More information about the Digitalmars-d-learn mailing list