why no implicit convertion?

bearophile bearophileHUGS at lycos.com
Wed Nov 17 14:49:51 PST 2010


> void bar(int N, int M)(ref int[N][M] buf) {}

But for a matrix this is often better:
void bar(int N, int M)(ref int[N][M] buf) {

Or even:
pure void bar(int N, int M)(ref const int[N][M] buf) {

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list