On Mar 2, 2007, at 1:56 PM, [EMAIL PROTECTED] wrote:

> 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.  :)

Yep; I should make that point explicitly.

------------------------
Charles Yeomans
http://www.declareSub.com/
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to