final variables
bearophile
bearophileHUGS at lycos.com
Tue Sep 22 04:20:43 PDT 2009
#ponce:
> Ok I was using D1.
> Final for variables must have been removed.
Good.
> What I understand is that D1's const force compile-time evaluation whereas D2's don't. Not sure though.
const in D1 is very easy, you can't take the address of a const variable, it's like the enum in D2. Some people say that such kind of const isn't necessary if the linker gets a little smarter.
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list