Re: Stupid global variable syntax question...

2019-12-28 Thread Paul Backus via Digitalmars-d-learn
On Sunday, 29 December 2019 at 03:45:03 UTC, WhatMe Worry wrote: Is it considered poor programming practice to have two modules import each other? I've got lots of global variables (i know bad programming) in the module with main() module app; import game; // __gshared stores the variabl

Stupid global variable syntax question...

2019-12-28 Thread WhatMe Worry via Digitalmars-d-learn
Is it considered poor programming practice to have two modules import each other? I've got lots of global variables (i know bad programming) in the module with main() module app; import game; // __gshared stores the variable in the classic global data segment. __gshared enum bool parti