Why does struct initializer works for arrays but not for associative arrays?

Seb seb at wilzba.ch
Wed Mar 14 16:37:32 UTC 2018


On Wednesday, 14 March 2018 at 15:17:54 UTC, Jonathan M Davis 
wrote:
> On Wednesday, March 14, 2018 13:36:51 Andre Pany via 
> Digitalmars-d-learn wrote:
>> [...]
>
> Well, I think that you have two issues here:
>
> 1. Struct literals work in only a few, specific circumstances. 
> Why, I don't know, but IIRC, someone was writing a DIP to fix 
> that, and that may or may not fix this case.

For reference, that's the DIP: 
https://github.com/dlang/DIPs/pull/71


More information about the Digitalmars-d-learn mailing list