From: "trans. (T. Onoma)" Date: 2004-09-17T21:11:11+09:00 Subject: Re: Automatic class conversion / function overloading On Friday 17 September 2004 07:44 am, Robert Klemme wrote: > You can't do that directly.  However have a look at > http://www.rubygarden.org/ruby?MethodOverloading That's very interesting. A little aliasing magic? Hmm... (see gears working inside tommy's head) Actually I'm more interested in overloading based on arity, rather then class. On Friday 17 September 2004 07:52 am, Brian Candler wrote: > Actually, you're often more interested in what methods an object responds > to, rather than its class. In the logger example you're more likely to have > >   logger.flush if logger.respond_to?(:flush) Exactly! This is a good practice to get in too. -- ( o _ カラチ // trans. / \ transami@runbox.com I don't give a damn for a man that can only spell a word one way. -Mark Twain