Const and enum optimizations

Phil Lavoie maidenphil at hotmail.com
Thu Jan 3 10:38:24 PST 2013


> But if your concern is const variables at module scope being 
> optimized out of
> existence, it is my understanding that they won't be.

All right, thanks for your answer! My concern is indeed const 
variable at module scope. I felt like using enums for #define 
translations were more appropriate, and you answer seems to 
confirm that.

Also, thank you for elaborating on the case where the array is 
created twice.

Phil


More information about the Digitalmars-d-learn mailing list