Manifest constants (was const again)
Simen Kjaeraas
simen.kjaras at gmail.com
Fri Dec 7 12:35:37 PST 2007
Oskar Linde wrote:
> Janice Caron wrote:
>>> 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.
>
> Then just make the two forms equivalent and maybe depreciate the second
> one with time.
>
> alias pi = 3.14;
> alias toString = to!(string);
>
> Why would this be a problem?
>
Because it breaks with the C/C++ heritage, methinks.
Anyways, is there a reason why we can't use 'alias 3.14 pi;'?
More information about the Digitalmars-d
mailing list