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

Reply via email to