原文
import std.stdio;
import std.format;struct indexedPair {size_t x, y;
}struct MyArray {bool[3][3] elements;ref opIndex(indexedPair i) {return elements[i.y][i.x];}
}void main() {auto arr = MyArray();auto p = indexedPair(1, 1);arr[p] = true;writeln(arr);
}