On Monday, 2 September 2013 at 04:49:46 UTC, H. S. Teoh wrote:
You can't alias a type to this. You need to instantiate it
first, then alias the instance to this (because 'this' is an
object, not a type). For example:
struct S {}
struct T {
//alias S this; // NG: S is a type
S s;
alias s this; // OK: s is an instance of S
}
Curiously the earlier version (v2.60?) Allowed this, but it was
an Enum (not a struct) that was being aliased. If memory serves
me right, you can alias a function as 'this' as well.
(Dern I'm tripping the spam filter.... a lot...)