Original Post
hi,
I''ve got an interesting dilema in the design of a new C++ system.. its not my enforced "rule", but there are going to be a huge number of global variables in a namespace available to the rest of the application.
Now, almost all of these globals will be primitive types - int, float, char etc..
except, with several 100 of them created in this way, am I likely to cause memory problems - I forget the correct name for it, but will all these non-ptr variables be created on the heap? eventually filling it up (I''d guess there could be ~500bytes).
In which case I''d normally think of using pointers... except that the ptr itself is 32bits (dependent on the OS of course), which in theory doesn''t seem to offer any useful savings..
any thoughts?
Jack