Not really an answer but this works, ``` struct Foo { string s; this(string s) { this.s = s; } }
void main(){ Foo foo = "a"; Foo[] foos; foos ~=foo; }% ```
Alain De Vos via Digitalmars-d-learn Mon, 25 Apr 2022 08:06:59 -0700
Not really an answer but this works, ``` struct Foo { string s; this(string s) { this.s = s; } }
void main(){ Foo foo = "a"; Foo[] foos; foos ~=foo; }% ```