From: batkins57@... Date: 2005-12-08T17:07:47+09:00 Subject: Re: A small query Isn't that sample the same as obj.instance_eval ? nobuyoshi nakada wrote: > Hi, > > At Thu, 8 Dec 2005 16:06:24 +0900, > Srinivas Jonnalagadda wrote in [ruby-talk:169525]: > > Object Pascal (at least as provided by Delphi) has a facility to send > > a sequence of messages to the same receiver, using a construct called > > 'with'. If 'obj' is an object with callable methods 'meth1', 'meth2' > > and 'meth3', it is possible to write: > > > > with obj do > > meth1(); > > meth2(param); > > meth3(param1, param2) > > end > > > > Can a similar thing be accomplished in Ruby? > > Fortunately, no. On dynamic languages such as Ruby, it would > cause just confusions if you nested it. > > -- > Nobu Nakada