"Daniel Gibson" <metalcae...@gmail.com> wrote in message news:i5lrkr$1ij...@digitalmars.com... > Nick Sabalausky schrieb: >> "Daniel Gibson" <metalcae...@gmail.com> wrote in message >> news:i5kbpr$24t...@digitalmars.com... >>> bearophile schrieb: >>>> Daniel Gibson: >>>> >>>>> Why not use the non-fictional const keyword? "The const attribute >>>>> declares constants that can be evaluated at compile time."[1] >>>> But you can use const for constants that are known at run-time only. >>>> While you can't use enum for constant known at run-time. >>>> >>> Really? Than that definition from the language docs is inaccurate. >>> >> >> You were looking at the D1 docs. The whole const system changed in D2. > > http://www.digitalmars.com/d/2.0/attribute.html#const says the same.
Yea, that's probably wrong then. Unless there's something I don't know.