1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* marshal.c (r_object0): singleton class instance can't be loaded. (ruby-bugs-ja:PR#366)

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@3134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2002-12-12 07:35:27 +00:00
parent 817961e5d2
commit d1e9d25804
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Thu Dec 12 16:26:31 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
* marshal.c (r_object0): singleton class instance can't be loaded.
(ruby-bugs-ja:PR#366)
Wed Dec 11 23:35:43 2002 WATANABE Hirofumi <eban@ruby-lang.org>
* ext/extmk.rb.in (create_makefile): -no-undefined -> --no-undefined.

View file

@ -799,6 +799,9 @@ r_object(arg)
{
VALUE c = rb_path2class(r_unique(arg));
if (FL_TEST(c, FL_SINGLETON)) {
rb_raise(rb_eTypeError, "singleton can't be loaded");
}
v = r_object(arg);
if (rb_special_const_p(v) || TYPE(v) == T_OBJECT || TYPE(v) == T_CLASS) {
format_error: