Ticket #1152 (closed todo: fixed)
:named should default to the name of the parameter
| Reported by: | coke | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | none | Version: | trunk |
| Severity: | medium | Keywords: | |
| Cc: | Language: | ||
| Patch status: | Platform: |
Description
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').
Change History
Note: See
TracTickets for help on using
tickets.
