On Mon, Sep 22, 2008 at 02:35:20PM +0800, Chris Davaz wrote:
> Awesome Patrick, you totally nailed it ;-)
> 
> I'll be submitting a patch soon. Do you know if there is a Parrot bug
> logged for the problem you described?

I don't think there's a Parrot bug filed for the issue of MMD
dispatch on string/int/num values.  However, since the new pdd27mmd
branch (which affects MMD handling) will be shortly merging into
trunk, we should probably report any issues there rather than what is
currently taking place in trunk.  Either that or look for clarification
in the pdd27 specification itself (and tests in the Parrot test suite
to match).

Here's the test I used to convince myself that :multi('String')
doesn't match string constant arguments:

    $ cat y.pir
    .sub main :main
        foo('_')
    .end
    
    .sub foo :multi('String')
        say 'foo String'
    .end
    $ ./parrot y.pir
    No applicable methods.

    current instr.: 'main' pc 8 (y.pir:2)
    $


Pm

Reply via email to