--pgp-sign-Multipart_Fri_May_30_22:37:20_2008-1
Content-Type: text/plain; charset=US-ASCII

At Fri, 30 May 2008 21:38:10 +0900,
ts wrote:
> Paul Brannan wrote:
> > How should I expect 1.9 to work?
>
>  Only matz know this and can respond : I don't know if some changes
>  in 1.9 are volontary or just bugs.
>
>  For example
>
> vgs% /usr/bin/ruby -e 'lambda { 1.times { return } }.call'
> -e:1: unexpected return (LocalJumpError)
> 	from -e:1:in `times'
> 	from -e:1
> 	from -e:1:in `call'
> 	from -e:1
> vgs%
>
> vgs% ./ruby -ve 'lambda { 1.times { return } }.call'
> ruby 1.9.0 (2008-05-30 revision 16703) [i686-linux]
> vgs%
>
>
> > I'm noticing similar problems with break, btw, though I don't yet have a
> > test case.
>
> vgs% ./ruby -ve 'lambda { p :b; break; p :a}.call'
> ruby 1.9.0 (2008-05-30 revision 16703) [i686-linux]
> -e:1: warning: statement not reached
> :b
> :a
> vgs%

You can always look into bootstraptest/test_knownbug.rb for known
bugs.

There is already a proposed patch for the latter issue, which is going
to be committed soon.  cf. [ruby-dev:34658]

I haven't tried it out myself, though.

--
Akinori MUSHA / http://akinori.org/

--pgp-sign-Multipart_Fri_May_30_22:37:20_2008-1
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)

iEYEABECAAYFAkhAAxAACgkQkgvvx5/Z4e5ywwCgt/gMOa3C7pQXI+Tyw5HcplMA
bb0AmwYe8KKNoUrgf2uCYz8tx3/DuqdI
8a
-----END PGP SIGNATURE-----

--pgp-sign-Multipart_Fri_May_30_22:37:20_2008-1--