spir:
> More generally, I find myself unable to define structured objects at a modules's top level. for instancz:
I suggest to declare global variables and then initialize them in a "static this() {...}". But generally I suggest you to minimize the number of global variables.
Bye,
bearophile