* 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
This commit is contained in:
nobu 2003-06-01 01:38:32 +00:00
parent e13e58bef6
commit 7b6452389d
2 changed files with 5 additions and 10 deletions

View File

@ -1,3 +1,8 @@
Sun Jun 1 10:38:28 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
* variable.c (rb_autoload_load): autoloaded constants under a module
belong to the module. [ruby-core:01094], [ruby-dev:20309]
Sat May 31 04:36:54 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
* parse.y (rb_intern): should handle multibyte name.

View File

@ -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);