[#30549] [ANN] Ruby 1.8.6 has been released — "Akinori MUSHA" <knu@...>

 Ruby 1.8.6 をリリースしました。

14 messages 2007/03/12

[#30553] help: lib/shell for ruby 1.9 — keiju@... (Keiju ISHITSUKA)

けいじゅ@いしつかです.

13 messages 2007/03/13
[#30585] Re: help: lib/shell for ruby 1.9 — Yukihiro Matsumoto <matz@...> 2007/03/15

まつもと ゆきひろです

[#30587] Re: help: lib/shell for ruby 1.9 — keiju@... (石塚圭樹) 2007/03/15

けいじゅ@いしつかです.

[#30588] Re: help: lib/shell for ruby 1.9 — Yukihiro Matsumoto <matz@...> 2007/03/15

まつもと ゆきひろです

[ruby-dev:30525] Re: DL::Symbol#call dumps core

From: "Akinori MUSHA" <knu@...>
Date: 2007-03-11 09:03:40 UTC
List: ruby-dev #30525
At Sun, 11 Mar 2007 12:09:59 +0900,
sheepman wrote:
> dl(1.8に付属の方)のマニュアルを書いていて気がついたんですが、
> 次のようにすると core を吐きます。
>
> strlast = DL.callback('IS'){|s|
>   s[-1]
> }
> p strlast.call("abcd")[0].chr
> DL.remove_callback(strlast)
> p strlast.call("abcd")[0].chr
>
> $ ruby-1.8 -vrdl/import t.rb
> ruby 1.8.6 (2007-03-05 patchlevel 5000) [i686-linux]
> "d"
> t.rb:9: [BUG] Segmentation fault
> ruby 1.8.6 (2007-03-05) [i686-linux]
>
> zsh: abort      ruby-1.8 -vrdl/import t.rb
>
> 以下はパッチです。

 ありがとうございます。エラーメッセージだけ修正してコミット
しました。

 1.9 の方(DL2)は該当部分がないのでそのままです。上のコードも
動きませんが、互換レイヤがないと移行がつらいかもしれませんね。

--
                     /
                    /__  __            Akinori.org / MUSHA.org
                   / )  )  ) )  /     FreeBSD.org / Ruby-lang.org
Akinori MUSHA aka / (_ /  ( (__(  @ iDaemons.org / and.or.jp

"Different eyes see different things,
    Different hearts beat on different strings --
       But there are times for you and me when all such things agree"

In This Thread

Prev Next