On Mon, 01 Nov 2010 03:50:12 -0400, Andreas Kaempf
wrote:
Hey folks!
Please enlight me with that prefix notation of 2-dimensional arrays! I
prepared a snippet giving me headaches:
auto int[2][3] test = [[11,12],[21,22],[31,32]];
foreach (x, row; test)
{
Stdout.format("x={}: ", x+1);
On Mon, 1 Nov 2010 07:50:12 + (UTC)
Andreas Kaempf wrote:
> According to the documentation, the declaration of test should declare 3
> arrays of two ints. The initialization works fine so that's ok for me.
>
> But why do I have to access it with test[x][y] to produce this result?
Yes, this