Is it possible to use global variables spanning modules?

bearophile bearophileHUGS at lycos.com
Fri Jun 21 09:29:04 PDT 2013


Gary Willoughby:

>is it possible to use global variables spanning modules?<

Why don't you use a __gshared module-global var, and then import 
it in all the modules where you need it?

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list