From: Joel VanderWerf Date: 2004-01-30T09:38:50+09:00 Subject: Re: rescue *[] nobu.nokada@softhome.net wrote: > Hi, > > At Fri, 30 Jan 2004 08:37:10 +0900, > Joel VanderWerf wrote: > >>Shouldn't these work the same? >> >>irb(main):012:0> begin; raise; rescue; end >>=> nil >>irb(main):013:0> begin; raise; rescue *[]; end >>RuntimeError: >> from (irb):13 > > > I think rescue without arguments implies StandardError, not Agree. > equal to no exceptions, similarly to when *[]. But I would say that both cases are "rescue without arguments". If I'm wrong, then rescue argument processing is different from method argument processing (there may be good reasons for that, of course): irb(main):001:0> def rescue_method(*args); p args; end => nil irb(main):002:0> rescue_method [] => nil irb(main):003:0> rescue_method(*[]) [] => nil