[前][次][番号順一覧][スレッド一覧]

ruby-changes:63305

From: Nobuyoshi <ko1@a...>
Date: Fri, 9 Oct 2020 12:10:24 +0900 (JST)
Subject: [ruby-changes:63305] 9ee99fbd8a (master): rb_const_set sets the class path now

https://git.ruby-lang.org/ruby.git/commit/?id=9ee99fbd8a

From 9ee99fbd8a3ea38d6286e4ecdfab146ee4a00eb5 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Fri, 9 Oct 2020 12:03:52 +0900
Subject: rb_const_set sets the class path now


diff --git a/random.c b/random.c
index 587e93c..1dd4ccd 100644
--- a/random.c
+++ b/random.c
@@ -1688,7 +1688,6 @@ InitVM_Random(void) https://github.com/ruby/ruby/blob/trunk/random.c#L1688
     rb_undef_alloc_func(base);
     rb_cRandom = rb_define_class("Random", base);
     rb_const_set(rb_cRandom, id_base, base);
-    rb_set_class_path(base, rb_cRandom, "Base");
     rb_define_alloc_func(rb_cRandom, random_alloc);
     rb_define_method(base, "initialize", random_init, -1);
     rb_define_method(base, "rand", random_rand, -1);
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]