defining in a module symbols for export

spir denis.spir at gmail.com
Mon Nov 22 12:41:51 PST 2010


On Mon, 22 Nov 2010 15:11:29 -0500
bearophile <bearophileHUGS at lycos.com> wrote:

> 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

Yes, I would generally agree (I normally have about nothing at module toplevel), but then how can they be exported? A parser module is precisely here to define symbols for export... How do you guys write that?


denis
-- -- -- -- -- -- --
vit esse estrany ☣

spir.wikidot.com



More information about the Digitalmars-d-learn mailing list