You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<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: IntB: 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. :)
<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: IntB: 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: IntB: AnyA: IntA: Any»
<masak> \o/
<pmichaud> \o/
<pmichaud> jnthn++
<masak> jnthn++
Migrated from rt.perl.org#78576 (status was 'rejected')
Searchable as RT78576$
The text was updated successfully, but these errors were encountered: