[#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:30470] Re: fail to autoload at $SAFE==4

From: "Akinori MUSHA" <knu@...>
Date: 2007-03-03 09:44:30 UTC
List: ruby-dev #30470
At Sat, 3 Mar 2007 15:32:09 +0900,
I wrote:
> At Thu, 1 Mar 2007 00:57:53 +0900,
> Hidetoshi NAGAI wrote:
> > From: "Nobuyoshi Nakada" <[email protected]>
> > Subject: [ruby-dev:30437] Re: fail to autoload at $SAFE==4
> > Date: Tue, 27 Feb 2007 15:02:33 +0900
> > Message-ID: <[email protected]>
> > > 今気づきましたが、動的にスクリプトを$LOAD_PATHに作るという可能性
> > > を考えるなら、ロード済みの.soの有無をロード中の.rbの有無よりも優
> > > 先させてはまずいので、最後のif文はこうですね。
> > >
> > >     if (rb_feature_p(feature, feature + strlen(feature), Qtrue))
> >
> > すみません.きちんとチェックしていませんでした.
> > この if 文の形で commit されてしまいましたが,
> > これだと更にまずいみたいで,
> > -----------------------------------------------------------------------
> > ruby -r tk -e 'TkButton.new'
> > /usr/local/lib/ruby/1.8/tk/label.rb:6: uninitialized constant TkLabel
> > (NameError)
> >         from /usr/local/lib/ruby/1.8/tk/button.rb:5:in `require'
> >         from /usr/local/lib/ruby/1.8/tk/button.rb:5
> >         from -e:1
> > -----------------------------------------------------------------------
> > なんてことになってしまいます.
> >
> > TkButton に対する autoload で tk/button.rb を load した際に
> > "require 'tk/label'" が実行され,tk/label.rb の上の
> > "class TkLabel<TkWindow" で NameError 発生,という流れです.
> >
> > 上記の if 文の部分が "if (rb_feature_p(feature, 0, Qfalse) == 'r')"
> > であれば,このようにはなりません.
>
>  この件はどうしましょうか。

 その後の中田さんのコミットで修正されたようです。
ruby_1_8_6 にも入れました。

--
                     /
                    /__  __            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