Re: Clarification on S12

2008-06-06 Thread Daniel Ruoso
Qui, 2008-06-05 às 15:43 -0700, Larry Wall escreveu: > Maybe it's just a temporary lack of imagination, but I'm having trouble > these days coming up with any kind of a use case for confusing single > dispatch with multiple dispatch. Yeah, I know I wrote that, but I was > either smarter or stupide

Re: Clarification on S12

2008-06-05 Thread Brandon S. Allbery KF8NH
On 2008 Jun 5, at 18:43, Larry Wall wrote: Maybe it's just a temporary lack of imagination, but I'm having trouble these days coming up with any kind of a use case for confusing single dispatch with multiple dispatch. Yeah, I know I wrote that, but I was either smarter or stupider back then.

Re: Clarification on S12

2008-06-05 Thread Larry Wall
On Thu, Jun 05, 2008 at 11:04:52AM -0500, Patrick R. Michaud wrote: : This message is looking for a clarification/confirmation. : S12:207 says: : : > To call an ordinary method with ordinary method-dispatch semantics, : > use either the dot notation or indirect object notation: : > : > $obj

Re: Clarification on S12

2008-06-05 Thread Patrick R. Michaud
On Thu, Jun 05, 2008 at 10:45:08PM +0200, Moritz Lenz wrote: > > Okay, so my bad example didn't provide an answer to my > > original question. Let's try it this way: > > > > class Foo { > > multi method bar(Dog $x) { say "Foo::bar"; } > > } > > sub bar(Int $x) { say "sub bar";

Re: Clarification on S12

2008-06-05 Thread Moritz Lenz
Patrick R. Michaud wrote: > On Thu, Jun 05, 2008 at 05:29:25PM +0100, Daniel Ruoso wrote: >> Qui, 2008-06-05 às 11:04 -0500, Patrick R. Michaud escreveu: >> > Does fall back to a subroutine occur anytime we don't have >> > a method with a matching signature? For example, if we have >> >> as far a

Re: Clarification on S12

2008-06-05 Thread Patrick R. Michaud
On Thu, Jun 05, 2008 at 05:29:25PM +0100, Daniel Ruoso wrote: > Qui, 2008-06-05 às 11:04 -0500, Patrick R. Michaud escreveu: > > Does fall back to a subroutine occur anytime we don't have > > a method with a matching signature? For example, if we have > > as far as I understand it, it only falls

Re: Clarification on S12

2008-06-05 Thread Daniel Ruoso
Qui, 2008-06-05 às 11:04 -0500, Patrick R. Michaud escreveu: > Does fall back to a subroutine occur anytime we don't have > a method with a matching signature? For example, if we have as far as I understand it, it only falls back to sub-dispach if the method dispatch would otherwise fail, which b

Clarification on S12

2008-06-05 Thread Patrick R. Michaud
This message is looking for a clarification/confirmation. S12:207 says: > To call an ordinary method with ordinary method-dispatch semantics, > use either the dot notation or indirect object notation: > > $obj.doit(1,2,3) > doit $obj: 1,2,3 > > If the method was not found, it will fall