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@79
Salih Dincer via Digitalmars-d-learn Sat, 19 Mar 2022 01:55:48 -0700
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@79