Andy Black wrote:

> Nope, they will be in scope for the function you see only.

Just to be clear, whether their values persist between one
invocation of the function and another is a seperate issue
from what scope they're in.  In other words, scope does not
equal lifetime.  Local variables with the "static" keyword
have the scope (that is, the symbols are defined for the
same regions of code, lexically) they would without it, but
their lifetime is different.

Having said that, are you sure the variables haven't been
optimized away by the optimizer?  If they are not referenced
anywhere, there would be no reason for the compiler to include
them.  You might check your compiler settings to be sure that
optimization is turned off.

  - Logan

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

Reply via email to