From: Austin Ziegler Date: 2006-05-19T09:07:49+09:00 Subject: Re: Rescue clauses on do/end blocks? On 5/18/06, Yukihiro Matsumoto wrote: > |I think the syntax would be changed as below: > | File.open('somefile') do |f| > | puts f.read > | rescue > | puts "Can't open" > | end > > Which do you expect from above code? I expect (a), personally. The only thing that could confuse it is the bit about returning or breaking from a block/proc that I *still* don't quite understand. -austin -- Austin Ziegler * halostatue@gmail.com * Alternate: austin@halostatue.ca