[#23717] error at TestDRbMServer (test/drb) — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>

山本です。どうしても原因がわからないので、報告だけ・・・

18 messages 2004/06/19
[#23718] Re: error at TestDRbMServer (test/drb) — nobu.nakada@... 2004/06/19

なかだです。

[#23719] Re: error at TestDRbMServer (test/drb) — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2004/06/19

山本です。

[#23720] Re: error at TestDRbMServer (test/drb) — nobu.nakada@... 2004/06/19

なかだです。

[#23724] Re: error at TestDRbMServer (test/drb) — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2004/06/19

山本です。

[#23762] Ruby 1.8.2 to be released. — matz@... (Yukihiro Matsumoto)

まつもと ゆきひろです

40 messages 2004/06/23

[#23784] URI() — Tanaka Akira <akr@...17n.org>

前から思っていたのですが、URI.parse("http://...") を URI("http://...")

19 messages 2004/06/25

[ruby-dev:23808] Module#class_variables in HEAD

From: nobu.nakada@...
Date: 2004-06-26 04:39:10 UTC
List: ruby-dev #23808
なかだです。

http://www02.so-net.ne.jp/~greentea/pre.html (ってじき消えちゃ
うけど)によると、Module#class_variablesがクラス変数の仕様変更に
追従していないようです。


Index: variable.c
===================================================================
RCS file: /pub/cvs/ruby/src/ruby/variable.c,v
retrieving revision 1.113
diff -u -2 -p -r1.113 variable.c
--- variable.c	14 May 2004 16:39:15 -0000	1.113
+++ variable.c	26 Jun 2004 04:38:34 -0000
@@ -1801,6 +1801,5 @@ cv_i(key, value, ary)
  *     mod.class_variables   => array
  *  
- *  Returns an array of the names of class variables in <i>mod</i> and
- *  the ancestors of <i>mod</i>.
+ *  Returns an array of the names of class variables in <i>mod</i>.
  *     
  *     class One
@@ -1811,5 +1810,5 @@ cv_i(key, value, ary)
  *     end
  *     One.class_variables   #=> ["@@var1"]
- *     Two.class_variables   #=> ["@@var2", "@@var1"]
+ *     Two.class_variables   #=> ["@@var2"]
  */
 
@@ -1820,10 +1819,6 @@ rb_mod_class_variables(obj)
     VALUE ary = rb_ary_new();
 
-    for (;;) {
-	if (RCLASS(obj)->iv_tbl) {
-	    st_foreach(RCLASS(obj)->iv_tbl, cv_i, ary);
-	}
-	obj = RCLASS(obj)->super;
-	if (!obj) break;
+    if (RCLASS(obj)->iv_tbl) {
+	st_foreach(RCLASS(obj)->iv_tbl, cv_i, ary);
     }
     return ary;


-- 
--- 僕の前にBugはない。
--- 僕の後ろにBugはできる。
    中田 伸悦

In This Thread

Prev Next