Bug 3999 and 4261

Nick Sabalausky a at a.a
Tue Aug 31 21:32:41 PDT 2010


"Daniel Gibson" <metalcaedes at gmail.com> wrote in message 
news:i5kbpr$24tn$1 at 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. 




More information about the Digitalmars-d mailing list