Manifest constants (was const again)

Janice Caron caron800 at googlemail.com
Fri Dec 7 12:21:24 PST 2007


On 12/7/07, Oskar Linde <oskar.lindeREM at ovegmail.com> wrote:
> Like others, I propose that manifest constants use the alias keyword.
> Alias is perfect for this. Since they don't occupy storage, they could
> thus also be polysemous values in the future.
>
> alias str = "str";

I'm uncomfortable with having

    alias dest = source;

in one circumstance, but

    alias source dest;

in others. I would find that confusing.



More information about the Digitalmars-d mailing list