Bug 3999 and 4261
Daniel Gibson
metalcaedes at gmail.com
Wed Sep 1 08:31:26 PDT 2010
Nick Sabalausky schrieb:
> "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.
>
http://www.digitalmars.com/d/2.0/attribute.html#const says the same.
More information about the Digitalmars-d
mailing list