http://d.puremagic.com/issues/show_bug.cgi?id=2628
------- Comment #1 from [email protected] 2009-01-28 02:25 ------- > struct Tuple(T...) > { > private T field; > ref T[i] opIndex(size_t i) { return field[i]; } > } That won't work as the return type of the function would depend on the function argument. At least until the requirement for CTFE functions to be evaluatable both at compile time and at run time is abolished. --
