This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Global Variables


Hi Ajay,

>Anybody else with a similar experience?

Yes. I got around it by no longer using global variables.

Not using global variables solves a lot of problems with Order of Construction problems, and Order of Destruction issues.

The monostate pattern and the singleton pattern can both aid in the elimination of global variables.

Sincerely,
--Eljay


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]