<div class="gmail_quote">On 16 July 2010 11:12, Heywood Floyd <span dir="ltr"><<a href="mailto:soul8o8@gmail.com">soul8o8@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">Lars T. Kyllingstad Wrote:<br>(...)</div>
<br>
When we introduce templates, this should still work:<br>
<br>
struct MyArray(T){<br>
array[3] T a;<br>
}<br>
<br>
// Let's try<br>
T == array[11] int<br>
<br>
array[3] T a;<br>
array[3] (array[11] int) a;<br>
array[3] array[11] a;<br>
array[3][11] a;<br>
<br>
a[0][10] = 9; //ok<br></blockquote><div><br>The 'int' goes missing there. I guess you meant to write:<br><br>array[3] T a;<br>
array[3] (array[11] int) a;<br>
array[3] array[11] int a;<br>
array[3][11] int a;<br><br>Right? Pretty nice. I must say that I quite like this. It does feel 'right'.<br><br>Groet,<br>Tim<br><br></div></div>