Project

General

Profile

Actions

Misc #9128

closed

Clarify documentation on difference between Object#clone and Object#dup

Added by stevegoobermanhill (stephen gooberman-hill) almost 11 years ago. Updated almost 11 years ago.

Status:
Closed
Assignee:
[ruby-core:58435]

Description

Object#clone and Object#dup documentation does not show that modules mixed in via Module#extend are preserved by #clone, but not by #dup


Files

0001-added-clarification-of-differences-between-Object-cl.patch (1.73 KB) 0001-added-clarification-of-differences-between-Object-cl.patch Patch to Object documentation, adds further note and example into Object#clone documentation stevegoobermanhill (stephen gooberman-hill), 11/19/2013 09:53 PM

Updated by drbrain (Eric Hodel) almost 11 years ago

  • Assignee changed from drbrain (Eric Hodel) to zzak (zzak _)

Updated by zzak (zzak _) almost 11 years ago

  • Status changed from Open to Assigned
Actions #3

Updated by zzak (zzak _) almost 11 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r43747.
stephen, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • object.c: [DOC] Clarify Object#dup vs #clone [Bug #9128]
    Moving existing doc for this comparison to separate section of #dup
    Adding examples to document behavior of #dup with Module#extend.
    Based on a patch by stevegoobermanhill
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0