From: dblack@... Date: 2003-08-13T21:53:43+09:00 Subject: Re: Nested class/module namespace Hi -- On Wed, 13 Aug 2003, Gavin Sinclair wrote: > On Wednesday, August 13, 2003, 9:39:28 PM, dblack wrote: > > >> [...] To my way of thinking, the only thing that should be > >> important in an execution context is the value of "self". [...] > > > Keep in mind, though, that this isn't the only such situation in Ruby. > > See my previous post with the class_eval example; > > I agree with Nathan that what goes on in "eval" and friends is a > different matter, although I'd be happy if it were less surprising. I always thought that klass.class_eval and obj.instance_eval were defined precisely as "switching self to {klass|obj}" for the duration of the string or block, so I'd think they relate closely to the "self"-centered (so to speak :-) view. David -- David Alan Black home: dblack@superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav