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;
Reserving `alias this = ...;` allows adding aliasing of
constructors in the future, assuming it can be meaningfully
defined.