why no implicit convertion?

Matthias Pleh sufu at alter.com
Wed Nov 17 13:52:32 PST 2010

Am 17.11.2010 22:36, schrieb Steven Schveighoffer:

> two ways, if you want to support multiple lengths of 4-element char arrays, you could do:
> void bar(char[4][])
> if you want to support only a 4x4 array, you can do:
> void bar(ref char[4][4])
> If you want to pass by value, omit the ref, but this will copy all the data and you will not be able to update the original array from within the function.

Aah, OK!
So I solved it with:

void bar(char* buf, int width, int height)

Good old C :)

More information about the Digitalmars-d-learn mailing list