On Fri, 17 Nov 2000, Yukihiro Matsumoto wrote: > Hi, > > In message "[ruby-talk:6412] clas << a & Pascal's with <record> do...end" > on 00/11/17, Hugh Sasse Staff Elec Eng <hgs / dmu.ac.uk> writes: > > |I was thinking that when a lot of work must be done on an object > |it would be nice to alter the search path for methods without a > |receiver. > | > | a.do_this > | a.do_that > | a.do_the_other > > How about the following? > > a.instance_eval do > do_this > do_that > do_the_other > end So you added the feature I wanted before I asked for it. That _is_ responsive! :-) I'd forgotten about instance_eval. Thank you. > > `instance_eval' swaps the current receiver within the block. > Maybe aliasing to the proper name would help comprehension. You mean I could 'alias with instance_eval', or do you mean something different? > > matz. Hugh