From: Stefan Schmiedl Date: 2004-08-27T01:51:11+09:00 Subject: Re: *with* block? On Wed, 25 Aug 2004 21:07:01 +0900, Mauricio Fern�ndez wrote: > On Wed, Aug 25, 2004 at 08:38:19PM +0900, Jim Weirich wrote: >> with obj do |obj| >> obj.x = 1 >> obj.y = 2 >> # ... >> end > > hehe nice joke > but still useful, if you're programming with e.g. FXRuby, as you can do something like the following (pseudo-code) with FX.create do |parent| FX.create_child(parent) end and avoid cluttering of local namespace. s.