You're right - it's not necessarily anti-concurrent. Just that if you use a static var you must ensure that it is private and its setter is synchronized (or some similar precaution to make its use thread-safe).
Scala offers the convenience of not allowing the developer to ever define a shared value that is not thread-safe. On Thursday, September 17, 2009, at 07:40AM, "Lachlan Deck" <[email protected]> wrote: >I'm not sure why static variables would be necessarily anti- >concurrent? It depends on the type of variable, no? e.g., a static >string is immutable. A static nsformatter is not re-entrant... etc _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
