Manifest constants - why not 'alias' ?

Craig Black cblack at ara.com
Fri Dec 7 07:54:35 PST 2007


"Walter Bright" <newshound1 at digitalmars.com> wrote in message 
news:fjake2$cid$2 at digitalmars.com...
> David Gileadi wrote:
>> FWIW, alias makes the most sense to me out of the current crop of 
>> suggestions.  To me it says that wherever I see the alias, it will be 
>> replaced with whatever value the alias is for.  That seems to describe 
>> manifest constants exactly.
>
> Since there's already:
>
> alias X Y;
>
> it would seem confusing to add:
>
> alias Y = X;

I would prefer the syntax alias X = Y even for types.  To me it's more 
explicit and consistent with the rest of the language. 





More information about the Digitalmars-d mailing list