class foo { this ( foo p /* , other params */ ) { parent = p; } foo create() { return new foo(this); } void use() { foo f = create(); }
foo parent; }
Kagamin via Digitalmars-d-learn Mon, 12 Apr 2021 06:16:41 -0700
class foo { this ( foo p /* , other params */ ) { parent = p; } foo create() { return new foo(this); } void use() { foo f = create(); }
foo parent; }