diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-02-08 07:43:54 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-02-08 07:43:54 +0000 |
commit | a7926befe0e9eeb5a1ccc76e05e4f4aebb5f8caf (patch) | |
tree | a5d9d22d3da8d145fe52123907096405808a194b /ChangeLog | |
parent | 26051e1d06f128fa2201d01936761634e8925c8e (diff) | |
download | ruby-a7926befe0e9eeb5a1ccc76e05e4f4aebb5f8caf.tar.gz |
* object.c (rb_obj_clone): call initialize_clone hook method to
call initialize_copy.
* object.c (rb_obj_dup): call initialize_dup hook.
* lib/delegate.rb (Delegator#initialize_clone): use new hook to
implement deep copy. [ruby-dev:40242]
* lib/delegate.rb (Delegator#initialize_dup): ditto.
* test/test_delegate.rb (TestDelegateClass#test_copy_frozen): add
a test to ensure #clone copies frozen status.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -7,6 +7,21 @@ Mon Feb 8 16:27:57 2010 Nobuyoshi Nakada <nobu@ruby-lang.org> * tool/eval.rb, win32/{mkexports,resource}.rb: miniruby no longer contains "." in $:. +Mon Feb 8 15:15:07 2010 Yukihiro Matsumoto <matz@ruby-lang.org> + + * object.c (rb_obj_clone): call initialize_clone hook method to + call initialize_copy. + + * object.c (rb_obj_dup): call initialize_dup hook. + + * lib/delegate.rb (Delegator#initialize_clone): use new hook to + implement deep copy. [ruby-dev:40242] + + * lib/delegate.rb (Delegator#initialize_dup): ditto. + + * test/test_delegate.rb (TestDelegateClass#test_copy_frozen): add + a test to ensure #clone copies frozen status. + Mon Feb 8 10:28:58 2010 Yukihiro Matsumoto <matz@ruby-lang.org> * configure.in: check pthread_attr_getstack to prevent obsolete |