Alias syntax removal

Andrej Mitrovic andrej.mitrovich at gmail.com
Sun Feb 10 08:35:29 PST 2013


On 2/10/13, Tove <tove at fransson.se> wrote:
> ... which also is "needed" if you use a "3rd party library mixin"
> in your struct(which internally uses alias this), so even with
> the ':' syntax it's anyway required to support being able to use
> it multiple times:
>
> alias this : sym1;
> alias this : sym2;

I've argued that it should be rare that someone uses multiple
subtyping, so I don't see the need to introduce more syntax into the
language when they can simply do this for the special occasion when
they need it:

alias this = this;
alias this = bar;


More information about the Digitalmars-d mailing list