2 problems I can't get my head around

jerro a at a.com
Wed Nov 28 06:47:43 PST 2012


> It would not be the same thing.
>
> immutable int i = 11;
>
> alias Y = i; // symbol alias
> enum  Z = i; // literal constant

It would work if some new way to force something to be evaluated 
at compile time would be added, like this:

alias Y = i; // symbol alias
alias Z = compiletime(i); // literal constant


More information about the Digitalmars-d mailing list