On Mon, 22 Nov 2010 15:11:29 -0500
bearophile <[email protected]> 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

Reply via email to