make a static library with the following class class Foo { this() { import std.stdio; writeln("whatever"); } } then in a simple program import this static library and create a new Foo. then execute => nothing is written to the console !