Bug #9138
closed
make initialize_copy private
Added by zzak (zzak _) about 11 years ago.
Updated over 5 years ago.
Description
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.
- Target version set to 2.6
Going to postpone this until 2.2
Isn't initialize_copy already private (as it should be)?
ObjectSpace.each_object(Class).reject {|k| k.private_method_defined?(:initialize_copy)}
# => [BasicObject]
- Target version deleted (
2.6)
- Status changed from Assigned to Closed
- Backport deleted (
1.9.3: UNKNOWN, 2.0.0: UNKNOWN)
Also available in: Atom
PDF
Like0
Like0Like0Like0Like0