From: Dave Thomas Date: 2000-10-27T21:26:37+09:00 Subject: [ruby-talk:5908] Re: [RFC] Towards a new synchronisation primitive hipster writes: > I'd say the point of definition of a method is at the end of the def > expression, before any method body expressions. Therefore only the > method body is subject to sync-behaviour. I can see cases where that wouldn't work, such as: class RingBuffer def sync initialize @inPtr = @outPtr = 0 end def sync printBuff(from = @inPtr, to = @outPtr) # ... end end If synchronization only applies to the method body, its possible that from gets assigned @inPtr in one state, then something else runs, and to gets @outPtr in another state. Not critical in this case, but I guess it could be. Dave