<div class="gmail_quote">On Thu, Aug 26, 2010 at 23:49, Stanislav Blinov <span dir="ltr">&lt;<a href="mailto:stanislav.blinov@gmail.com">stanislav.blinov@gmail.com</a>&gt;</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;">
struct S(T,size_t N)<br>
{<br>
        T[N] arr;<br>
        int foo;        // type doesn&#39;t seem to matter here,<br>
                        // taking int for clarity<br>
<br>
        static immutable S C1   =   { initializeWith!(T,N)(0) 5 };<br>
        // Note there is no comma after first initializer    ^<br>
}<br>
<br>
This actually compiles and works, though I have an impression that syntax error is in order. Putting in second array and attempting similar initialization without commas leads to one. I&#39;ve only tried it with Windows 2.048, though I think the front end would eat this on Linux too. Is this valid, already known or I should report this?<br>

</blockquote></div><br>Dunno, I never use the = { ... } syntax to create structs. I always do = S(...);<br>I even thought the literal syntax was being deprecated. Maybe I&#39;m mistaken.<br><br>In any case, please report this.<br>
<br><br>