diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-06-01 01:38:32 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-06-01 01:38:32 +0000 |
commit | 7b6452389d2cce226151fde516667b1ca105b6a8 (patch) | |
tree | dc4be11a78230ebed5718f2962df76aaeecbb9d4 /variable.c | |
parent | e13e58bef695d094665068e73f322e639505635f (diff) |
* variable.c (rb_autoload_load): autoloaded constants under a module
belong to the module. [ruby-core:01094], [ruby-dev:20309]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'variable.c')
-rw-r--r-- | variable.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/variable.c b/variable.c index 4835ab502e..11a931fa39 100644 --- a/variable.c +++ b/variable.c @@ -1194,17 +1194,7 @@ rb_autoload_load(klass, id) ID id; { VALUE file, value; - ID tmp = id; - if (!st_delete(RCLASS(klass)->iv_tbl, &tmp, &value) || value != Qundef) { - if (klass != rb_cObject) - rb_name_error(id, "not autoload constant %s::%s", - RSTRING(rb_class_path(klass))->ptr, - rb_id2name(id)); - else { - rb_name_error(id, "not autoload constant %s", rb_id2name(id)); - } - } file = autoload_delete(klass, id); if (NIL_P(file)) { uninitialized_constant(klass, id); |