Project

General

Profile

Actions

Bug #9138

closed

make initialize_copy private

Added by zzak (zzak _) almost 11 years ago. Updated over 5 years ago.

Status:
Closed
Assignee:
Target version:
-
ruby -v:
2.1.0dev
Backport:
[ruby-core:58488]

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.

Updated by zzak (zzak _) almost 11 years ago

  • Target version set to 2.6

Going to postpone this until 2.2

Updated by marcandre (Marc-Andre Lafortune) almost 11 years ago

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

ObjectSpace.each_object(Class).reject {|k| k.private_method_defined?(:initialize_copy)}
 # => [BasicObject]
Actions #3

Updated by naruse (Yui NARUSE) almost 7 years ago

  • Target version deleted (2.6)
Actions #4

Updated by jeremyevans0 (Jeremy Evans) over 5 years ago

  • Status changed from Assigned to Closed
  • Backport deleted (1.9.3: UNKNOWN, 2.0.0: UNKNOWN)
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0