2008/12/18 Dave Ingram <d...@dmi.me.uk>

>
> Also, what about this case:
>
> class MyTestClass {
>  public function blah(Foo $f);
>  public function blah(Bar $b);
>  public function blah($v);
> }
>
> I would argue that the most specific function should be called, but how
> costly would that be to determine? What if you have a "Baz" subclass of
> Bar, but no corresponding method? What if Bar itself is a subclass of Foo?
>
>
Ideally a most specific first approach, failing that I'd suggest taking
doing it the nearest first way (like we do when catching exceptions) ?

Reply via email to