[#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: matz@... (Yukihiro Matsumoto)
Date: 2004-02-02 22:41:24 UTC
List: ruby-core #2329
Hi,

In message "Re: xxx_init_copy"
    on 04/02/02, Dave Thomas <dave@pragprog.com> writes:

|Does that mean that there's no difference between dup and clone for 
|these classes?

"clone" does

  (a) create instance of the original's class.
  (b) copy singleton class if the original has one. 
  (c) copy internal flags except for frozen flags.
  (d) copy instance variables
  (e) call "initialize_copy"
  (f) copy frozen flag if the original is frozen.

"dup" does

  (a) create instance of the original's class.
  (d) copy instance variables
  (e) call "initialize_copy"

							matz.

In This Thread