Initialising arrays at compile time

bearophile bearophileHUGS at
Wed Jan 5 13:08:22 PST 2011


> "static enum" makes no sense, shouldn't it be an error?

Currently the way D/DMD manages attributes and the like is so sloppy that it seems trash. But there are always more important things to do and fix, so no care is given on this problem:
My theory is: if the compiler is very sloppy then language newbies will have to work twice harder to learn what's correct and what's wrong.


More information about the Digitalmars-d-learn mailing list