#1152: :named should default to the name of the parameter
--------------------+-------------------------------------------------------
Reporter: coke | Owner:
Type: todo | Status: new
Priority: normal | Milestone:
Component: none | Version: trunk
Severity: medium | Keywords:
Lang: | Patch:
Platform: |
--------------------+-------------------------------------------------------
Originally opened in http://rt.perl.org/rt3/Ticket/Display.html?id=58886,
this code:
{{{
.sub main
$I0 = 'incr'('value'=>3)
say $I0
.end
.sub 'incr'
.param int value :named
inc value
.return(value)
.end
}}}
Should print '4' - the lack of an explicit name for the value param
should, per allison, default to the name of the param. (in this case,
'value').
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1152>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets