standard alias for a class name inside the class code?

Mithun Hunsur via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat May 28 17:28:13 PDT 2016


On Sunday, 29 May 2016 at 00:14:17 UTC, dan wrote:
> Is there a standard alias for a class name inside class code?
>
> Something like 'this' referring to a class instance, but 
> referring instead to the class itself?
>
> [...]

typeof(this) gets you the type of the current class. :)


More information about the Digitalmars-d-learn mailing list