On Tue Aug 17 06:22:55 2010, masak wrote:
> <masak> rakudo: class A { method foo { say "OH HAI" } }; class B is A
> {}; class C is A is B {}; say "alive"; C.new.*foo
> <p6eval> rakudo 85602a: OUTPUT«===SORRY!===␤Could not build C3
> linearization: ambiguous hierarchy␤»
> * masak submits rakudobug
> <masak> it's a good day when I find something amiss in the OO system. 
:)
> <masak> rakudo: class A { method foo { say "OH HAI" } }; class B is A
> {}; class C is B is A {}; say "alive"; C.new.*foo
> <p6eval> rakudo 85602a: OUTPUT«alive␤OH HAI␤»
> <masak> interesting.
> 
> Apart from some cases of MRO, the order of the parent classes
> shouldn't matter in the declaration.

Fixed.

16:32 < [Coke]>  rakudo: class A { method foo { say "OH HAI" } }; class 
B is A
                {}; class C is A is B {}; say "alive"; C.new.*foo
16:32 <+p6eval> rakudo 88c5a5: OUTPUT«alive␤OH HAI␤»


Closable with tests.


-- 
Will "Coke" Coleda

Reply via email to