From: Dave Thomas Date: 2001-03-25T23:03:58+09:00 Subject: [ruby-talk:13194] Re: self in blocks used with tk methods joel writes: > You say that no other threads can access the object during the > instance_eval call within initialize. Is that because new calls > initialize before putting the object in ObjectSpace? Is it really > impossible to access the object, or is it just that no variable > refers to it yet? I _think_ what it says is that is you use a form of object construction that looks like: a = Fred.new a.setAge 10 a.setTown "Bedrock" a.setFriend barney and so on, then your object is not fully initialized (and therefore is not internally consistent) until after the last 'set', so you'll need to protect it from access in other threads. This does not apply with the form that uses a block. Dave