Assigning to array of structs with custom constructor

Alain De Vos devosalain at ymail.com
Mon Apr 25 15:00:13 UTC 2022


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;
}%
```


More information about the Digitalmars-d-learn mailing list