Manifest constants - why not 'alias' ?

Bill Baxter dnewsgroup at billbaxter.com
Thu Dec 6 16:25:21 PST 2007


Alias makes a lot more sense to me than enum.

alias x = 5;
alias float[] y = [1.0,2.0,3.0];

Conceptually, the variable becomes an alias for the literal.

Enum is short for 'unumeration'.  But manifest constants aren't 
enumerating anything.  It makes no sense.

--bb



More information about the Digitalmars-d mailing list