defining in a module symbols for export

bearophile bearophileHUGS at
Mon Nov 22 12:11:29 PST 2010


> 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.


More information about the Digitalmars-d-learn mailing list