At 9:18 AM -0800 12/2/01, Steve Mann wrote: >>What...he's the only one here who knows C? Anyway, I think he said >>he was on the road until the Sync Up. > >Of course not. I've heard rumors that both you and John use C from >time to time. :-)
Well, you wouldn't know it from my response. In it, I said: "Locally defined static objects are ... just like globals except that ... any initializer they have is not executed until the first time that scope is entered." Here, I was thinking of C++ and constructors for static local variables that are objects. I don't know what the rules are for C and scalars, but it doesn't make sense to me to defer that initialization until the scope containing the variables is first entered. There shouldn't be any problem with the C compiler initializing statics along with all the other globals, since I don't think there's any way the client code could tell either way. -- -- Keith Rollin -- Palm OS Emulator engineer -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
