= Struct Initialization = ''Part of'' TutorialFundamentals == Description == Shows a quick way to initialize a struct. == Example == {{{ #!d struct Foo { int bar, baz, bam; } void main() { static Foo[] myfoo = [ { 0, 1, 2 }, { bar: 3, baz: 4, bam: 5 }, { bam: 8, baz: 7, bar: 6 }, ]; } }}} == Source == Based on [http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=D&artnum=22815 D/22815] by Vathix on 30 Jan 2004.