> static this() seems to be a problem. Unless there's powerful > whole-program-optimisation, how can it strip out any data that might be > initialised/touched in static this()? It probably can't. > Why wouldn't dead code be eliminated effectively already? Cause 1 section is created for each module. So if you use just 1 function the whole module is pulled in.