From: "Hal E. Fulton" Date: 2003-07-16T23:37:26+09:00 Subject: Re: Keyword "with" ----- Original Message ----- From: "ts" To: "ruby-talk ML" Cc: Sent: Wednesday, July 16, 2003 8:10 AM Subject: Re: Keyword "with" > >>>>> "H" == Hal E Fulton writes: > > H> def with(obj,*args,&blk) > H> obj.instance_eval &blk > H> end > > H> @foo, @bar = 34,45 > H> with(some_obj,@foo,@bar) do |x,y| > H> @foo = x + y > H> end > > Euh, what version of ruby are you using ? No version from this universe. Apologies! There were at least three separate errors in that little bit of code. On reflection, I think that what I wanted to do is not possible. Hal -- Hal Fulton hal9000@hypermetrics.com