Tomek S.:
> This doesn't work:
> int opIndex(int[][] m, uint i, uint j) { return m[i][j]; }That's cute, but in D overloaded operator can be defined inside structs/classes/unions only (this is different from C++). Bye, bearophile
Tomek S.:
> This doesn't work:
> int opIndex(int[][] m, uint i, uint j) { return m[i][j]; }That's cute, but in D overloaded operator can be defined inside structs/classes/unions only (this is different from C++). Bye, bearophile