--- Matthew Bevan <[EMAIL PROTECTED]> wrote:
>I've 
>recently run into troubles with globals - far after
> I had the chance to 
> correct my mistake early on.  Now I have several
> thousand lines I need to go 
> back and re-tweak to not use globals.  Damn system
> callback functions...

That's my point, that's why I think it could be better
to try to do some type of "encapsulation" albeit in
the form of a struct (Mat), .h files (Lois),
preferences-struct (you).... whatever.

> > 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.....?
> 
> I had thought globals were a resource in an
> application (a template, if you 
> will) that was loaded into dynamic memory to be
> modified.  You may be able to 
> dis-assemble some of your code to find out exactly
> where it's loaded to (an 
> offset off of A7 or somesuch)...

Like I said I'm not sure about that one, but I think I
have read that someplace (even in this forum I
believe).
I'm sure someone here could clear up this one, it
would be interesting to know :-)

__________________________________________________
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