Virtual Classes?

Meta via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Aug 17 19:51:48 PDT 2016


On Thursday, 18 August 2016 at 00:49:49 UTC, Engine Machine wrote:
> https://en.wikipedia.org/wiki/Virtual_class
>
> Can D do stuff like this naturally?

Yes, D's `alias this` feature supports this.

https://dlang.org/spec/class.html#alias-this


More information about the Digitalmars-d-learn mailing list