defining in a module symbols for export

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


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


More information about the Digitalmars-d-learn mailing list