2006/5/18, Ross Bamford <rossrt / roscopeco.co.uk>:
> 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/