Cannot initialize associative array.
bearophile
bearophileHUGS at lycos.com
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.
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list