<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Oct 3, 2020 at 10:40 PM Daniel Kozak <<a href="mailto:kozzi11@gmail.com">kozzi11@gmail.com</a>> wrote:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div>I would say it is here you just need to read it carefully:</div><div><br></div><div><a href="https://dlang.org/spec/struct.html#static_struct_init" target="_blank">https://dlang.org/spec/struct.html#static_struct_init</a></div><div><br></div></div></div></blockquote><div><br></div><div>For case specification is change I will paste it here:</div><div>'''</div><div>If a StructInitializer is supplied, the fields are initialized by the StructMemberInitializer syntax. StructMemberInitializers with the Identifier : NonVoidInitializer syntax may be appear in any order, where Identifier is the field identifier. StructMemberInitializers with the NonVoidInitializer syntax appear in the lexical order of the fields in the StructDeclaration. </div><div>'''</div><div><br></div><div>And StructMemberInitializer is defined as:</div><div><br></div><div>'''</div><div>StructMemberInitializer:<br>    NonVoidInitializer<br>    Identifier : NonVoidInitializer<br></div><div>'''</div><div><br></div><div>And NonVoidInitializer is defined as:</div><div><br></div><div>'''</div><div>NonVoidInitializer:<br>    ExpInitializer<br>    ArrayInitializer<br>    StructInitializer<br></div><div>'''</div><div><br></div><div>And as you can see there is ArrayInitializer</div><div><br></div><div>And there is definition of Array literals here</div><div><a href="https://dlang.org/spec/expression.html#array_literals">https://dlang.org/spec/expression.html#array_literals</a><br></div><div><br></div><div>and in section 2. there is this text:</div><div><br></div><div>'''</div><div>By default, an array literal is typed as a dynamic array, but the element count is known at compile time. So all array literals can be implicitly converted to static array types.<br></div><div>'''</div><div><br></div><div><br></div></div></div>