From: ts Date: 2001-06-27T19:05:46+09:00 Subject: [ruby-talk:16962] Re: Method overloading (option) Was: Re: >>>>> "M" == Mathieu Bouchard writes: M> So, I propose that the proposal be changed such that it is a single method M> definition, but with multiple bodies. This could be like: M> class Array M> def [] (Integer i) M> # fetch single element M> ordef (Integer i, Integer n) M> # fetch sequence by length M> ordef (Range r) M> # fetch sequence by range M> end M> end You have just changed the syntax, and in a way that personnaly I don't like because you add dispatch on the number of arguments. Guy Decoux