From: "Mauricio Fernández" Date: 2003-06-19T17:46:04+09:00 Subject: Re: Multiple Initialize methods? On Thu, Jun 19, 2003 at 05:40:02PM +0900, Sam Griffith wrote: > Nick, > > A common idiom in type-less languages like Ruby, Smalltalk and others is They are not type-less there are dynamically typed. Doing a = 1 + "1" doesn't work in Ruby, but does in Perl, for example. > that you see class methods that take the parameters specific to that usage. > They then turn around and call an internal method that does the actual > construction and then return the result. Much like the Factory pattern. [...] > And in Ruby, by the time you get to initialize, lots of error checking on > the args could have already been done, etc. So that initializations need to > do that is minimal. This should all go into the Wiki :-) -- _ _ | |__ __ _| |_ ___ _ __ ___ __ _ _ __ | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ | |_) | (_| | |_\__ \ | | | | | (_| | | | | |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_| Running Debian GNU/Linux Sid (unstable) batsman dot geo at yahoo dot com Q: What's the big deal about rm, I have been deleting stuff for years? And never lost anything.. oops! A: ... -- From the Frequently Unasked Questions