enum value vs. immutable
bearophile
bearophileHUGS at lycos.com
Mon Dec 2 04:41:36 PST 2013
Ali Çehreli:
> Do not use enum for arrays and associative arrays, because enum
> is like copy+pasting the definition everywhere the enum is
> used. It is expensive to initialize arrays and AAs.
Lot of time ago I think Don suggested to disallow enum dynamic
and associave arrays. enum is partially broken, but I am not
seeing much effort in trying to fix it.
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list