Runtime constant definitions

Lars Kyllingstad public at kyllingen.NOSPAMnet
Fri Sep 12 01:20:11 PDT 2008


Frank Benoit wrote:
> I think 'const' should work.

It works! Thanks! :)

But isn't this the opposite of the intended behaviour? I thought consts 
were evaluated at compile time, and finals and static this() blocks at 
run time. At least that's how I've interpreted the D1 specs.

-Lars


More information about the Digitalmars-d-learn mailing list