Nested Classes with inheritance

Salih Dincer salihdb at hotmail.com
Sat Mar 19 08:50:01 UTC 2022


On Saturday, 19 March 2022 at 00:16:48 UTC, user1234 wrote:
> ```d
> if (typeid(this) !is typeid(Bar))
>     this.b = new Bar(this.i);
> ```

A very clever and ingenious solution. Thanks...

SDB at 79


More information about the Digitalmars-d-learn mailing list