From: Wyss Clemens Date: 2001-11-28T23:29:58+09:00 Subject: [ruby-talk:26793] Re: overload possible? Guy, I know your extension does the dispatch on the types, but I am also pretty sure that Masanori meant this (although he says "different number of arguments"). And even if he wanted to dispatch on the number of arguments, YOUR extension would allow him to do this too! class TS_Class def meth(Fixnum arg1) ... end def meth(Fixnum arg1, Fixnum arg2) ... end def meth(Fixnum arg1, Fixnum arg2, Fixnum arg3) ... end ... end Clemens > -----Original Message----- > From: ts [mailto:decoux@moulon.inra.fr] > Sent: Mittwoch, 28. November 2001 15:14 > To: ruby-talk@ruby-lang.org > Cc: ruby-talk@ruby-lang.org > Subject: [ruby-talk:26791] Re: overload possible? > > > >>>>> "W" == Wyss Clemens writes: > > W> No, UNLESS you ask Guy Decoux (ts) to give you his *extension* > > No, no. He want the dispatch on the *number* of arguments > which personnaly > I don't like. I prefer the dispatch on the *type* of arguments. > > Like said in [ruby-talk:26788] it's easy to have dispatch on > the number of > arguments. > > > Guy Decoux >