Initialising arrays at compile time

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


so:

> "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:
http://d.puremagic.com/issues/show_bug.cgi?id=3934
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.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list