From: Robert Klemme Date: 2006-05-19T17:41:58+09:00 Subject: Re: Rescue clauses on do/end blocks? 2006/5/18, Ross Bamford : > Does that mean that with the proposed syntax, to rescue an exception > from this File.open, we'd have to use: > > begin > File.open('somefile') do |f| > puts f.read > rescue > # exception from f.read > end > rescue > # exception from File.open > end No. You still decide where to catch the exception. You can do it inside the block or outside. It's just a syntactical change which obsoletes a pair of begin end inside the block. Kind regards robert -- Have a look: http://www.flickr.com/photos/fussel-foto/