From: ts Date: 2002-09-27T18:27:03+09:00 Subject: Re: adding overload to ruby >>>>> "C" == Christoph writes: >> def a(Array a) next_method; end C> It would be helpful (I have an idea but ...) if you could C> describe what your next_method call does ... Same than Dylan, except that I don't give the possibility to change the dispatch at runtime (i.e. #next_method take 0 argument) which is, at least for me, a bad thing >> end If you have not seen the problem, here the real example pigeon% cat d.rb #!./ruby -w class B < Array; end module M def a(B b) end end class A include M def a(Array a) end end pigeon% pigeon% d.rb ./d.rb:9: Possible ambiguous call M [B] -- A [Array] (NameError) pigeon% Guy Decoux