On Mar 02, 2007, at 18:36 UTC, Charles Yeomans wrote: > Maybe not. Now that I think about it, neither example is > particularly thread-safe. In either example, foo can be changed by > one thread while another yields during the loop.
Right. But it may bear mentioning that this is not unique to static variables; you'd have exactly the same issue accessing any global (or module public) property, or a class shared property. As I always say, a static's just a global that can only be accessed in the method where it's defined. :) Best, - Joe -- Joe Strout -- [EMAIL PROTECTED] Verified Express, LLC "Making the Internet a Better Place" http://www.verex.com/ _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
