// >>>>>>>>>>
import std.stdio; struct Foo { Bar bar; ~this() { writeln("~Foo"); // some code that disables call to ~Bar } } struct Bar { ~this() { writeln("~Bar"); } } void main() { Foo foo; }
Haridas via Digitalmars-d-learn Sun, 24 Sep 2017 10:15:48 -0700
// >>>>>>>>>>
import std.stdio; struct Foo { Bar bar; ~this() { writeln("~Foo"); // some code that disables call to ~Bar } } struct Bar { ~this() { writeln("~Bar"); } } void main() { Foo foo; }