On 16 July 2010 11:12, Heywood Floyd <soul...@gmail.com> wrote: > Lars T. Kyllingstad Wrote: > (...) > > When we introduce templates, this should still work: > > struct MyArray(T){ > array[3] T a; > } > > // Let's try > T == array[11] int > > array[3] T a; > array[3] (array[11] int) a; > array[3] array[11] a; > array[3][11] a; > > a[0][10] = 9; //ok >
The 'int' goes missing there. I guess you meant to write: array[3] T a; array[3] (array[11] int) a; array[3] array[11] int a; array[3][11] int a; Right? Pretty nice. I must say that I quite like this. It does feel 'right'. Groet, Tim