From: Brian Mitchell Date: 2009-03-02T09:29:37+09:00 Subject: Re: Rub 1.9: "inline rescue" doesn't work? On Sun, Mar 1, 2009 at 19:01, Iñaki Baz Castillo wrote: > El Lunes, 2 de Marzo de 2009, Iñaki Baz Castillo escribió: > >> It seems that Ruby 1.9 doesn't react on "inline rescue" as 1.8. Do I miss >> something? > > Well, it must be something even worse since block rescue neither works: > > ----------------- > begin >        aaa = 123.capitalize > rescue >        aaa = 444 > end > ------------------ > => NoMethodError: undefined method `capitalize' for 123:Fixnum > > > Perhaps it's due to the not updated version of Ruby1.9 I'm using?: > >  $ irb1.9 -v >  irb 0.9.5(05/04/13) > >  $ ruby1.9 -v >  ruby 1.9.0 (2007-08-30 patchlevel 0) [i486-linux] miro:~ brian$ irb19 >> aaa = 123.capitalize rescue 444 => 444 miro:~ brian$ ruby19 -v ruby 1.9.2dev (2009-03-02 trunk 22700) [i386-darwin9.6.0] Brian.