From: James Edward Gray II Date: 2007-01-23T22:50:31+09:00 Subject: Re: new method dispatch rule (matz' proposal) On Jan 23, 2007, at 7:41 AM, Yukihiro Matsumoto wrote: > Hi, > > In message "Re: new method dispatch rule (matz' proposal)" > on Tue, 23 Jan 2007 19:56:11 +0900, Daniel DeLorme ml@dan42.com> writes: > > |> (4) (unconfirmed) private method dispatch searches from caller > method class. > | > |Do I understand correctly that: > | class A > | def foo; bar; end > | private > | def bar; "A"; end > | end > | class B < A > | private > | def bar; "B"; end > | end > | B.new.foo #=> "A" > | > |So the only way to do polymorphism would be through public methods? > > Yes. That seems like a positive change to me. James Edward Gray II