On Tue Oct 26 08:00:21 2010, masak wrote:
> <masak> rakudo: class A { multi method foo(Int) { say "A: Int";
> nextsame }; multi method foo($) { say "A: Any" } }; class B is A {
> multi method foo(Int) { say "B: Int"; nextsame }; multi method foo($)
> { say "B: Any" } }; B.new.foo(42)
> <p6eval> rakudo d49eea: OUTPUT«B: Int␤B: Any␤»
> <masak> that's the first result that confuses me.
> <masak> where'd the A methods go?
> * masak submits rakudobug
> <masak> rakudobugs are such a win-win proposition. :) when I see a
> behavior I don't understand, I can submit a bug ticket. either it gets
> fixed, or someone explains to me why I'm wrong. :)

<TimToady> there's no nextsame in B Any
<masak> :-/
<masak> that'd explain it...
<pmichaud> I agree; I don't see a nextsame in B Any or A Any
* masak rejects ticket
<masak> rakudo: class A { multi method foo(Int) { say "A: Int"; nextsame }; 
multi method foo($) 
{ say "A: Any" } }; class B is A { multi method foo(Int) { say "B: Int"; 
nextsame }; multi method 
foo($) { say "B: Any"; nextsame } }; B.new.foo(42)
<p6eval> rakudo d49eea: OUTPUT«B: Int␤B: Any␤A: Int␤A: Any␤»
<masak> \o/
<pmichaud> \o/
<pmichaud> jnthn++
<masak> jnthn++

Reply via email to