diff options
author | Yukihiro Matsumoto <matz@ruby-lang.org> | 1995-02-24 13:15:43 +0900 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2019-08-17 22:09:31 +0900 |
commit | 881c5a9c320c637ee0f6526b40cf70c1379ab656 (patch) | |
tree | 3c0327fc9bdef8f056563ceee400226ac572535b /class.c | |
parent | 2f106ab85c4f4e171374aee261f5a12bdd923c41 (diff) |
version 0.68v0_68
https://cache.ruby-lang.org/pub/ruby/1.0/ruby-0.67-0.68.diff.gz
Fri Feb 24 13:15:43 1995 Yukihiro Matsumoto (matz@ix-02)
* version 0.68
Thu Feb 23 11:19:19 1995 Yukihiro Matsumoto (matz@ix-02)
* eval.c: resque節のselfの値が間違っていた.
* eval.c(rb_clear_cache): キャッシュのクリアし忘れがあった.
* eval.c: 定数のスコープをクラス内の静的スコープに変更した.これに
よって,特異メソッドからは参照される定数は,レシーバのクラスでは
なく,定義されたスコープのクラスの定数となる.
Wed Feb 22 00:51:38 1995 Yukihiro Matsumoto (matz@dyna)
* regex.c: ignorecaseを正規表現のコンパイル前に指定しないと正しく
動作しない.修正.
* string.c(toupper,tolower): bug fix.
* ENV,VERSION: readonly変数から定数へ.
Diffstat (limited to 'class.c')
-rw-r--r-- | class.c | 22 |
1 files changed, 2 insertions, 20 deletions
@@ -6,7 +6,7 @@ $Date: 1995/01/12 08:54:44 $ created at: Tue Aug 10 15:05:44 JST 1993 - Copyright (C) 1994 Yukihiro Matsumoto + Copyright (C) 1995 Yukihiro Matsumoto ************************************************/ @@ -203,7 +203,7 @@ rb_include_module(class, module) Check_Type(module, T_MODULE); if (BUILTIN_TYPE(class) == T_CLASS) { - rb_clear_cache2(class); + rb_clear_cache(class); } while (module) { @@ -224,24 +224,6 @@ rb_include_module(class, module) } void -rb_add_method(class, mid, node, noex) - struct RClass *class; - ID mid; - NODE *node; - int noex; -{ - NODE *body; - - if (class == Qnil) class = (struct RClass*)C_Object; - if (st_lookup(class->m_tbl, mid, &body)) { - Warning("redefine %s", rb_id2name(mid)); - rb_clear_cache(body); - } - body = NEW_METHOD(node, noex); - st_insert(class->m_tbl, mid, body); -} - -void rb_define_method(class, name, func, argc) struct RClass *class; char *name; |