From: "Vít Ondruch" Date: 2012-01-10T01:30:32+09:00 Subject: [ruby-core:42004] continuations expected result --e89a8ff257a2c42d1704b61aeaee Content-Type: text/plain; charset=ISO-8859-1 Hi, Working on [1], I have come with short oneliner: ruby -rcontinuation -e 'cont = nil; callcc { |k| cont = k }; cont.call' What is the expected result of such code? Built by GCC 4.6, I see infinite loop. Built by GCC 4.7, I experience crash [2]. Vit [1] http://bugs.ruby-lang.org/issues/5851 [2] https://gist.github.com/1583613 --e89a8ff257a2c42d1704b61aeaee Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,

Working on [1], I have come with short oneliner:

ruby -rc= ontinuation -e 'cont =3D nil; callcc { |k| cont =3D k }; cont.call'=

What is the expected result of such code? Built by GCC 4.6, I see i= nfinite loop. Built by GCC 4.7, I experience crash [2].

Vit



[1] http://bugs.ruby-lang.org/issues/5851
[2] https://gist.github.com/1583613
--e89a8ff257a2c42d1704b61aeaee--