From: Robert Klemme Date: 2003-07-18T17:43:07+09:00 Subject: Re: Keyword "with" "Richard Zidlicky" schrieb im Newsbeitrag news:20030717142158.GB2481@linux-m68k.org... > On Wed, Jul 16, 2003 at 10:36:51PM +0900, Peter Hickman wrote: > > > We've had programmers who wanted 'initialize' changed to 'new' so that > > they would have less to type. > > this would be also good for another reason, people will no > longer get confused by mistyping "s" and "z" in initialize ;) I'd insist on having these still separated. "new" is different from "initialize": it allocates an instance and then invokes initialize which is really only responsible for initializing. It might have come more handy to use "init" instead, but I guess changing that now will do a lot of harm. Btw: you can achieve that easily with class Object alias old_initialize :initialize def initialize(*args, &block) old_initialize init(*args, &block) end end now you can do class Foo def init(name) @name = name end end Regards robert