On Sunday, 10 February 2013 at 14:42:50 UTC, kenji hara wrote:
Why I argue that the syntax `alias this = sym;` is wrong?
Because:
1. A normal alias declaration (creating aliased name for
existing symbol)
and alias this feature
(making a *subtyped* struct through implicit access to its
field) are
entirely different and has distinct semantics.
They merely share a keyword 'alias'.
I think alias this works like alias. Shouldn't subtyped object
support casting to any its type? Contrarily alias this simply
redirects access like alias and has nothing to do with types, so
it's pretty valid to see it as an alias.