[#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: nobu.nokada@...
Date: 2004-02-02 12:58:14 UTC
List: ruby-core #2325
Hi,

At Thu, 29 Jan 2004 22:51:09 +0900,
Dave Thomas wrote:
> > And, sorry but another problem, I'd like to document
> > xxx_init_copy() as clone and dup methods, instead of
> > initialize_copy, because I feel initialize_copy must not be
> > called externally.  Is this possible?
> >
> 
> Is this for cases where there isn't already a dup or a clone method? Or 

Now #dup and #clone belong to Kernel, and they call
#initialize_copy for particular class, so each classes don't
have these two methods.  It is close to the relation between
Class#new and Object#initialize, I guess.

> would it work simply to support :nodoc: in the C parser?

Right now, xxx_init_copy's are :nodoc:ed.

-- 
Nobu Nakada

In This Thread