[#30722] JSON ライブラリの取り込み — "NARUSE, Yui" <naruse@...>

naruseです。

20 messages 2007/04/21

[ruby-dev:30685] Re: IO.popen("-") with no fork

From: "U.Nakamura" <usa@...>
Date: 2007-04-04 02:19:02 UTC
List: ruby-dev #30685
こんにちは、なかむら(う)です。

In message "[ruby-dev:30681] IO.popen("-") with no fork"
    on Apr.04,2007 00:41:49, <nobu@ruby-lang.org> wrote:
| [ruby-dev:30679]に関連して、win32などのforkのない環境では
| IO.popen("-")はfork同様NotImplementedErrorになるべきじゃないで
| しょうか。

このパッチが入って気付いたのですが、rb_notimplement() が出力
するメッセージ中の関数名が一段ずれているようです。

それはそれとして、これが直っても
  The popen() function is unimplemented on this machine
とか出るのはそれはそれで紛らわしいと思うんですが、どうしたも
のでしょうかね。

Index: error.c
===================================================================
--- error.c	(revision 12144)
+++ error.c	(working copy)
@@ -1029,7 +1029,7 @@ rb_notimplement(void)
 {
   rb_raise(rb_eNotImpError,
            "The %s() function is unimplemented on this machine",
-	     rb_id2name(rb_frame_callee()));
+	     rb_id2name(rb_frame_this_func()));
 }
 
 void

それでは。
-- 
U.Nakamura <usa@garbagecollect.jp>



In This Thread