On 20 May, 20:43, Mark Glines <[email protected]> wrote:
>   + Fixes for pir classes inheriting from core pmcs.

For a moment I had thought this meant vtable inheritance had been
fixed but sadly not.

.sub '' :main

    .local pmc cint, cfooint
    cfooint = subclass 'Integer', 'FooInt'

    $P0 = new 'Integer'
    $P0 = 10
    sub $P0, 1
    say $P0

    $P0 = new 'FooInt'
    $P0 = 10
    sub $P0, 1
    say $P0

.end

Running the above still gives a multidispatch error :(

> parrot test.pir

9
Multiple Dispatch: No suitable candidate found for 'i_subtract_int',
with signature 'PI'
current instr.: '' pc 21 (test.pir:14)
_______________________________________________
http://lists.parrot.org/mailman/listinfo/parrot-dev

Reply via email to