Get the type of 'alias this ='

Vladimirs Nordholm v at vladde.net
Wed Apr 4 15:55:32 UTC 2018


On Wednesday, 4 April 2018 at 15:49:31 UTC, Vladimirs Nordholm 
wrote:
>     private template Mix()
>     {
>         this(Enum ee) { e = ee; }
>         Enum e;
>         alias this = e;
>     }


Oops, typo in the alias. Should be `alias e this`


More information about the Digitalmars-d-learn mailing list