On Friday, 5 July 2013 at 01:31:00 UTC, Ali Çehreli wrote:
But this doesn't compile:

    char[3][5] arr = [ '.', '.', '.' ];

Error: mismatched array lengths, 15 and 3

I see that as a bug but can't be sure.

I'd file a bug report, but since [x, y, z] is primarily a dynamic array literal, I'd file it like this:

struct S
{
    int[3] values;
}

void main()
{
    alias A = S;
    alias B = int[3];

    A[2] a = A.init; // OK
    B[2] b = B.init; // Error: mismatched array lengths, 6 and 3
}

Reply via email to