Bug 3999 and 4261

Nick Sabalausky a at a.a
Wed Sep 1 11:56:25 PDT 2010


"Daniel Gibson" <metalcaedes at gmail.com> wrote in message 
news:i5lrkr$1ijr$1 at digitalmars.com...
> 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.

Yea, that's probably wrong then. Unless there's something I don't know.




More information about the Digitalmars-d mailing list