Project

General

Profile

« Previous | Next » 

Revision 31ef3124

Added by nobu (Nobuyoshi Nakada) about 7 years ago

numeric.c: Numeric#clone and #dup

  • numeric.c (num_clone, num_dup): no longer raises TypeError,
    returns the receiver instead as well as Integer and Float.
    [ruby-core:79636] [Bug #13237]

  • object.c (rb_immutable_obj_clone): immutable object clone with
    freeze optional keyword argument.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e