Brian Mitchell
3/2/2009 12:30:00 AM
On Sun, Mar 1, 2009 at 19:01, I=C3=B1aki Baz Castillo <ibc@aliax.net> wrote=
:
> El Lunes, 2 de Marzo de 2009, I=C3=B1aki Baz Castillo escribi=C3=B3:
>
>> It seems that Ruby 1.9 doesn't react on "inline rescue" as 1.8. Do I mis=
s
>> something?
>
> Well, it must be something even worse since block rescue neither works:
>
> -----------------
> begin
> =C2=A0 =C2=A0 =C2=A0 =C2=A0aaa =3D 123.capitalize
> rescue
> =C2=A0 =C2=A0 =C2=A0 =C2=A0aaa =3D 444
> end
> ------------------
> =3D> NoMethodError: undefined method `capitalize' for 123:Fixnum
>
>
> Perhaps it's due to the not updated version of Ruby1.9 I'm using?:
>
> =C2=A0$ irb1.9 -v
> =C2=A0irb 0.9.5(05/04/13)
>
> =C2=A0$ ruby1.9 -v
> =C2=A0ruby 1.9.0 (2007-08-30 patchlevel 0) [i486-linux]
miro:~ brian$ irb19
>> aaa =3D 123.capitalize rescue 444
=3D> 444
miro:~ brian$ ruby19 -v
ruby 1.9.2dev (2009-03-02 trunk 22700) [i386-darwin9.6.0]
Brian.