At 10:54 PM -0800 12/1/01, Steve Mann wrote:
>>It's my belief that 'me' is in the heap because it's declared 'static'.
>
>Normally, as far as I know, static objects within functions are put
>in the global space. However, since you declare it inside a set of
>braces, it might be allocated on the stack. Does it retain it's
>value from invocation to invocation?
No. Locally defined static objects are put into the same space as
globals. They're just like globals except that (a) they are
accessible only within the scope they are defined and (b) any
initializer they have is not executed until the first time that scope
is entered.
>Where's Ben Combee when you need him? Ben?............
What...he's the only one here who knows C? Anyway, I think he said
he was on the road until the Sync Up.
-- Keith "Waiting for John Marshall to jump in here and accuse me of
not knowing C..."
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/