Issue #9138 has been updated by marcandre (Marc-Andre Lafortune).


Isn't initialize_copy already private (as it should be)?

    ObjectSpace.each_object(Class).reject {|k| k.private_method_defined?(:initialize_copy)}
     # => [BasicObject]
----------------------------------------
Bug #9138: make initialize_copy private
https://bugs.ruby-lang.org/issues/9138#change-43655

Author: zzak (Zachary Scott)
Status: Assigned
Priority: Normal
Assignee: zzak (Zachary Scott)
Category: 
Target version: next minor
ruby -v: 2.1.0dev
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


it was discussed with nobu that initialize_copy should be a private method, and any cases where it's public is considered a bug.

when i asked matz he said, it sounds good and ok to experiment with this change in trunk.


-- 
http://bugs.ruby-lang.org/