Project

General

Profile

Actions

Bug #9138

closed

make initialize_copy private

Added by zzak (zzak _) over 10 years ago. Updated almost 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 _) over 10 years ago

  • Target version set to 2.6

Going to postpone this until 2.2

Updated by marcandre (Marc-Andre Lafortune) over 10 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) over 6 years ago

  • Target version deleted (2.6)
Actions #4

Updated by jeremyevans0 (Jeremy Evans) almost 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