On Saturday, 1 February 2014 at 18:44:42 UTC, Dicebot wrote:
On Saturday, 1 February 2014 at 17:38:44 UTC, Jesse Phillips
wrote:
alias this = foo;
This is new syntax, has some edge cases which fail and
intended to replace the old typedef style
alias Type NewName;
Such that it look more like variable assignment:
alias NewName = Type;
This syntax was intended to only be used for normal aliases,
not "alias this", and was supposed to be removed for latter.
Do you have a citation for that? My understanding was that the
correct way was
'alias' identifier '=' type;
and that the old one was going to be removed because it was
easier to confuse the type and its new name.