Skip Menu |
Report information
Id: 129245
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: allbery.b [at]

Severity: (no value)
Tag: Bug
Platform: (no value)
Patch Status: (no value)
VM: (no value)

Date: Sun, 11 Sep 2016 02:52:38 -0400
To: rakudobug [...]
Subject: [BUG] *$foo accepted in signatures
From: Brandon Allbery <allbery.b [...]>
Download (untitled) / with headers
text/plain 919b
[11 06:36] <sammers_> m: sub subparams(($head, *$tail)) { ($head, $tail).flat }; say subparams((1,2,3,4));
[11 06:36] <camelia> rakudo-moar 0a7125: OUTPUT«Too many positionals passed; expected 2 arguments but got 4 in sub-signature␤
[11 06:36]    in sub subparams at <tmp> line 1␤
[11 06:36]    in block <unit> at <tmp> line 1␤
[11 06:36]  ␤
[11 06:36]  »
[11 06:41] <geekosaur> "An array or hash parameter can be marked as slurpy by leading asterisk(s)" suggests *$ should be illegal
[11 06:45] <lizmat> geekosaur: I would tend to agree
[11 06:46] <lizmat> m: dd :(*$a)   # apparently, it's just $a
[11 06:46] <camelia> rakudo-moar 0a7125: OUTPUT«:($a)␤
[11 06:46]  »

brandon s allbery kf8nh                               sine nomine associates                        
unix, openafs, kerberos, infrastructure, xmonad
Download (untitled) / with headers
text/plain 224b
The design docs had a particular behavior in mind for *$ parameters: But it hasn't been implemented (yet?), so yeah, it should be made an error for now.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at