I've noticed that pretty much every example of Palm OS code I've seen declares all variables and functions static. How come? I know that static local variables are useful for re-entrant functions, and static functions are useful for marking code as "module-private". And I know of situations when linking with assembly code where you would declare global variables as static, in order to prevent their addresses from changing.
But most Palm OS code meets none of these criteria. So why does everyone use static? Is this some requirement of the Palm OS, or is it one of those everybody-else-does-it-so-I-should-too things? Thanks, Trevor --------------------------------------------- This message was sent using WebMail by CyberGate. http://www.gate.net/webmail -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
