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

deadalnix deadalnix at gmail.com
Fri Feb 7 13:54:11 PST 2014


On Friday, 7 February 2014 at 21:30:46 UTC, Timon Gehr wrote:
> 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;

+1


More information about the Digitalmars-d mailing list