From: Paul Brannan Date: 2002-06-07T02:13:53+09:00 Subject: Re: Pascal-like 'with' statement? On Thu, Jun 06, 2002 at 09:23:15AM +0900, Philip Mak wrote: > Is there something like Pascal's with statement? There are a few implementations of 'with' out there. The one I wrote (which I make no guarantees about): http://rm-f.net/~cout/ruby/treasures/RubyTreasures-0.4/lib/hacks/with.rb.html http://rm-f.net/~cout/ruby/treasures/RubyTreasures-0.4/ext/hacks/kernelless_object.c.html and another one, which appears to point to a broken link: http://www.ruby-lang.org/en/raa-list.rhtml?name=with-block I think this latter one used to be implemented using instance_eval, which can be dangerous. Paul