static initialization of associative arrays
bearophile
bearophileHUGS at lycos.com
Wed Apr 15 12:11:26 PDT 2009
Daniel Keep:
> I think Walter said something a while back to the effect that making it
> possible to statically initialise AAs isn't feasible because it requires
> setting up a complex structure on the heap.
At the moment you can't statically initialize a built-in AA in D.
But with a small change in D AAs such memory may be allocated statically too, when the program starts. What's the advantage of doing this? Having quicker startup times?
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list