example: ----------- struct A{ int* arr; ~this() { writeln("A destruct"); } } static ~this() { writeln("module destruct"); } A a; void main() { } ----------- only prints "module destruct"