Cannot initialize associative array.

bearophile bearophileHUGS at
Wed Jun 23 04:21:37 PDT 2010

Ali Çehreli:
> Could someone please verify whether the above is really necessary?

An initialization inside some runtime function/initializator is necessary unless the AA is an enum.

> Is it 
> actually a dmd bug that we need to use 'static this()' to initialize an 
> associative array?

According to the way D AAs are designed it's not a bug. But of course you can think of possible enhancements or changes to the design.


More information about the Digitalmars-d-learn mailing list