Ticket #1030 (closed bug: fixed)

Opened 12 years ago

Last modified 12 years ago

long sub invocation with named parameters

Reported by: coke Owned by:
Priority: normal Milestone:
Component: none Version: trunk
Severity: medium Keywords:
Cc: Language:
Patch status: Platform:

Description

See  Original RT

:named syntax in verbose subroutine calls does not work in PIR. e.g.:

.sub main
.local pmc foo
foo = get_global 'foo'

foo('x' => 1, 'y' => 2)
foo(1 :named('x'), 2 :named('y'))

.begin_call
.set_arg 1 :named('x')
.set_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

Generates the error:

error:imcc:Named parameter with more than one name.

        in file 'foo.pir' line 10

Change History

Changed 12 years ago by plobsing

  • status changed from new to closed
  • resolution set to fixed

fixed in r46433.

Note: See TracTickets for help on using tickets.