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

* file.c (rb_stat_clone): should copy internal data too.

* numeric.c (num_clone): Numeric should not be copied by clone.

* object.c (rb_obj_clone): should check immediate values.

* parse.y (command): `yield' should take command_args.

* parse.y (parse_quotedwords): %w(...) is not a string.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2001-10-10 08:21:13 +00:00
parent 14129c8fa3
commit 8098dd6c80
7 changed files with 51 additions and 7 deletions

View file

@ -91,8 +91,9 @@ static VALUE
num_clone(x)
VALUE x;
{
/* Numerics are immutable values, which need not to copy */
return x;
/* Numerics are immutable values, which should not be copied */
rb_raise(rb_eTypeError, "can't clone %s", rb_class2name(CLASS_OF(x)));
return Qnil; /* not reached */
}
static VALUE