From: matz@... (Yukihiro Matsumoto) Date: 1998-03-29T03:02:53+09:00 Subject: [ruby-dev:1978] Re: [BUG] catch, throw まつもと ゆきひろです In message "[ruby-dev:1977] [BUG] catch, throw" on 98/03/28, WATANABE Hirofumi writes: |わたなべです. |a = catch(:foo) { | throw(:foo, 2) | 1 |} |p a | |が nil になります. 1.1b9 で eval.c の POP_TAG の変更が原因だ |と思うけど. | |#あれ, もう新しいのが出てる. 新しいのでも直ってません.でも私もちょうどさっき気がついたと ころです. パッチは以下の通りです. diff -u -1 -r1.1.1.2.2.32 eval.c --- eval.c 1998/03/28 10:57:40 1.1.1.2.2.32 +++ eval.c 1998/03/28 17:59:25 @@ -6247,3 +6247,2 @@ tt->dst = t; - tt->retval = value; break; @@ -6263,2 +6261,3 @@ } + return_value(value); trap_restore_mask();