From: nobuyoshi nakada Date: 2005-10-25T10:33:56+09:00 Subject: Re: instance_eval/instance_exec discussion Hi, At Tue, 25 Oct 2005 07:20:17 +0900, Daniel Amelang wrote in [ruby-core:06375]: > > It is not thread-safe. > > Maybe, care to explain why? (class< I assume that you don't expect multiple threads to access the same object. > It is generally assumed that you should guard your objects. E.g. noone > expects a string object to handle #size properly while another thread calls > #slice!. But you are probably referring to something else...? If it is guraded outside, thread-safeness in a method is not important, or even redundant. In general, the word "immediately" makes no sense with multi-threading. Atomicity is important. > I guess I should have made it clearer: I'm not proposing to add this > _implemenation_ to the ruby language, I'm asking if the proposed _behavior_ > would be useful. I know, and don't intend to offend you at all. Just a nitpick. -- Nobu Nakada