Larry Wall writes:
> If you write:
> 
>     multi method add( $self: Foo $foo, Bar $bar );
> 
> then there are multiple add methods in the current class.  Note the
> invocant is not optional in this case.  Also, there's an implied
> second colon after $bar, indicating the end of the arguments to be
> considered for multi dispatch.  (You can put as many colons as you
> want in any multi declaration--each subsequent colon indicates that
> the preceding additional argument or arguments are to be used as
> "tie breakers, just as Foo and Bar are being used for tie-breaking
> in the method above.)  

So what is the, ahem, submethod for determining the dispatch within the
tie-breaking cascades?  A simple sum of differences?  Cartesian
distance? 

Luke

> Larry

Reply via email to