--- Matt Graham <[EMAIL PROTECTED]> wrote:
> Michel.P wrote:
> > --- Matt Graham <[EMAIL PROTECTED]> wrote:
> > 
> >>What's wrong with globals?
> > 
> > But besides from that I seem to recall that
> globals
> > reside in the [limited] dynamic memory heap
> throughout
> > the app-life, something one should try to avoid.
> Or
> > did I just make this one up.....?
> 
> why is this bad? are you running out of memory or
> something?
> i'm asking b/c I've never had any problems w/
> globals and
> I'm wondering if I should start using them less.

Fortunately I have yet to run out of memory (but then
again, I have also yet to finish my app :-)

I feel like I'm getting myself deeper and deeper with
all the claims I'm making, but I'll take my chances
(*deep breath*).... 
Since the whole app reside in the dynamic heap
(globals apart) it would mean that one would have more
room more for a larger app (although in practice it's
probably insignificant).
If I'm not mistaken, the app's stack is also in this
heap (which of course includes the function calls), so
this would also leave more room for the stack.

Again, in practice it all probably doesn't make much
of a difference but since we're all indoctrinated to
use memory wisely on the Palm it seems to be something
to keep in mind... at least in theory (or for the
design-practice part of the Palm cert.exam :-)

__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to