"alias that this" or "alias this : that"

Timon Gehr timon.gehr at gmx.ch
Fri Feb 7 13:30:45 PST 2014


On 02/07/2014 10:02 PM, Daniel Kozak wrote:
> On Friday, 7 February 2014 at 20:48:37 UTC, Tofu Ninja wrote:
>> On Friday, 7 February 2014 at 07:52:22 UTC, Meta wrote:
>>> ...
>>
>> Is alias this = that not a thing? If not, why?
> Because
> alias this = that;
> alias this = anotherThat;
>
> is wierd

Even if we assume for now that this is somehow bad, it is no reason to 
have syntax inconsistent with alias.

int baz(int x){ return x; }
double bar(double x){ return x; }

alias foo = bar;
alias foo = baz;



More information about the Digitalmars-d mailing list