[#2367] Standard libraries — Dave Thomas <dave@...>

From ruby-dev summary:

60 messages 2004/02/11

[#2397] PATCH: deprecate cgi-lib, getopts, importenv, parsearg from standard library — Gavin Sinclair <gsinclair@...>

Index: cgi-lib.rb

15 messages 2004/02/12

[#2465] PATCH: OpenStruct#initialize to yield self — Gavin Sinclair <gsinclair@...>

This is a common approach I use to object initialization; I don't know

24 messages 2004/02/19

Re: xxx_init_copy

From: Dave Thomas <dave@...>
Date: 2004-02-04 13:55:33 UTC
List: ruby-core #2339
On Feb 3, 2004, at 23:38, Yukihiro Matsumoto wrote:

> Difference lies in the Object#dup and Object#clone.  initialize_copy
> does the additional work (both for dup and clone) for the particular
> class.  I'm not sure what is the best way to document this.

Ah - I finally see. Sorry to be so dense.

Perhaps the way to do it is you document Object#dup and #clone, 
highlighting the differences as you did in your previous e-mail, and 
then at the bottom of each description say "This method may have 
class-specific behavior. If so, that behavior will be documented under 
the #init_copy method of the class."


Cheers

Dave


In This Thread

Prev Next