From: Bulat Ziganshin Date: 2002-09-27T15:52:01+09:00 Subject: Re: adding overload to ruby Hello Yukihiro, Friday, September 27, 2002, 6:13:23 AM, you wrote: |>>I like the *concept* of this idea. YM> |- I still think multimethod dispatch is evil, but it would be YM> |a lot less evil if was based on methods rather than types. YM> I agree with you wholeheartedly. what is the protocol, in your mind? i think that this is a bundle of method names and their behavior. that is the difference with (possible empty) mix-in module? module String_like class_must_define :[], :at .... end class String include String_like end def foo(String_like s) end must most people will use just def foo(String s) end :) -- Best regards, Bulat mailto:bulatz@integ.ru