November 17, 2010 Re: why no implicit convertion? | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile | > 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
|
Copyright © 1999-2021 by the D Language Foundation