[#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: Change to #new (was OpenStruct#initialize to yield self)

From: Austin Ziegler <austin@...>
Date: 2004-02-20 00:37:48 UTC
List: ruby-core #2471
On Fri, 20 Feb 2004 08:24:31 +0900, Carlos wrote:
>>> As more general suggestion. Could 'new' yield the new object is a
>>> block is given? This behavior could then be overridden by the classes
>>> where this isn't appropriate (such as hash).
>> How would it be overridden?
> def initialize ...
>   super {}
> end

Ugh. I'm not sure that I like that.

-austin
--
austin ziegler    * austin@halostatue.ca * Toronto, ON, Canada
software designer * pragmatic programmer * 2004.02.19
                                         * 19.37.22




In This Thread