This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Global Variables
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: "Ajay Bansal" <Ajay_Bansal at infosys dot com>, <gcc-help at gcc dot gnu dot org>
- Date: Thu, 06 Mar 2003 11:03:17 -0600
- Subject: 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