Namespace:
void main() { A a; a.opIndex!int(0); // [1] a!int[0]; // [2] } ----[1] works, but [2] fails.How can I call opIndex with bracket syntax and a typename? Or is this not possible?
I think that's not supported by D syntax. So if you want that, you need to use a syntax like "a.at!int(0)".
Bye, bearophile