Assigning to array of structs with custom constructor

cc cc at nevernet.com
Mon Apr 25 15:05:51 UTC 2022


On Monday, 25 April 2022 at 15:00:13 UTC, Alain De Vos wrote:
> Not really an answer but this works,
> ```
> void main(){
> Foo foo = "a";
> Foo[] foos;
> foos ~=foo;
> }%
> ```

Right, I can append individual elements, but can't assign or 
append a slice of a type that can be individually cast to the 
struct.


More information about the Digitalmars-d-learn mailing list