On Mon, Sep 08, 2008 at 09:28:47AM -0700, NotFound via RT wrote:
> The code in this ticket does not parse. Is using obsolete syntax? Can
> someone provide an updated version?

Perhaps:

    .sub main
        .local pmc foo
        foo = get_global 'foo'
    
        foo('x' => 1, 'y' => 2)
        foo(1 :named('x'), 2 :named('y'))
    
        .begin_call
        .arg 1 :named('x')
        .arg 2 :named('y')
        .call foo
        .end_call
    .end
    
    .sub foo
        .param int i :named('y')
        .param int j :named('x')
        say i
        say j
    .end


Running this on r30913 gives me the same message as the original post:

    $ ./parrot x.pir
    error:imcc:Named parameter with more than one name.
    
            in file 'x.pir' line 10

Pm

Reply via email to