Is it possible to use global variables spanning modules?
Gary Willoughby
dev at kalekold.net
Fri Jun 21 10:47:47 PDT 2013
On Friday, 21 June 2013 at 16:29:06 UTC, bearophile wrote:
> 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
I've just been looking at that but a little unsure how to use it.
Do you import the module that declares the __gshared var or
import the var itself?
More information about the Digitalmars-d-learn
mailing list