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

Meta jared771 at gmail.com
Thu Feb 6 23:52:20 PST 2014


On Friday, 7 February 2014 at 07:36:57 UTC, Mike wrote:
> Can someone please clarify for me which of these is the 
> "preferred" syntax?
>
> alias that this;
> alias this : that;
>
> The documentation here (http://dlang.org/class.html#AliasThis) 
> doesn't mention the latter.  I'll do the unrewarding work of 
> updating the docs if someone could just please tell me which 
> syntax the core language folks prefer.
>
> Thanks.
> Mike
>
> For context:
> https://github.com/D-Programming-Language/dmd/pull/1413
> https://github.com/D-Programming-Language/dmd/pull/1685

`alias this : that` was discussed but has never been implemented, 
so currently the only way to do it is `alias that this`.


More information about the Digitalmars-d mailing list