Skip Menu |
Report information
Id: 131071
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: cpan [at] zoffix.com
Cc:
AdminCc:

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



Subject: [BUG] unpacking a slurpy in `my` creates `Mu`s despite working when used in a routine's sig
Download (untitled) / with headers
text/plain 839b
The last two items printed, `$type` and `$speedup`, get set properly if used in a sub's signature: `sub` 14:34 m: sub ($sha, $, $, *@rest ($, $type, $speedup, $)) {dd [ @rest, $type, $speedup ];}(|'fa9aa47 [io grant] Make R::I::SET_LINE_ENDING_ON_HANDLE 4.1x Faster'.words) 14:34 camelia rakudo-moar 42f34f: OUTPUT: «[["Make", "R::I::SET_LINE_ENDING_ON_HANDLE", "4.1x", "Faster"], "R::I::SET_LINE_ENDING_ON_HANDLE", "4.1x"]␤» But when using the same signature in a `my`, they are left as `Mu`s: `my`: 14:34 Zoffix m: my ($sha, $, $, *@rest ($, $type, $speedup, $)) := \ |'fa9aa47 [io grant] Make R::I::SET_LINE_ENDING_ON_HANDLE 4.1x Faster'.words; dd [ @rest, $type, $speedup ]; 14:34 camelia rakudo-moar 42f34f: OUTPUT: «[["Make", "R::I::SET_LINE_ENDING_ON_HANDLE", "4.1x", "Faster"], Mu, Mu]␤»
RT-Send-CC: perl6-compiler [...] perl.org
Download (untitled) / with headers
text/plain 1.1k
On Tue, 28 Mar 2017 07:38:32 -0700, cpan@zoffix.com wrote: Show quoted text
> > The last two items printed, `$type` and `$speedup`, get set properly > if used in a sub's signature: > > `sub` > 14:34 m: sub ($sha, $, $, *@rest ($, $type, $speedup, > $)) {dd [ @rest, $type, $speedup ];}(|'fa9aa47 [io grant] Make > R::I::SET_LINE_ENDING_ON_HANDLE 4.1x Faster'.words) > 14:34 camelia rakudo-moar 42f34f: OUTPUT: «[["Make", > "R::I::SET_LINE_ENDING_ON_HANDLE", "4.1x", "Faster"], > "R::I::SET_LINE_ENDING_ON_HANDLE", "4.1x"]␤» > > > But when using the same signature in a `my`, they are left as `Mu`s: > `my`: > 14:34 Zoffix m: my ($sha, $, $, *@rest ($, $type, $speedup, > $)) := \ |'fa9aa47 [io grant] Make R::I::SET_LINE_ENDING_ON_HANDLE > 4.1x Faster'.words; dd [ @rest, $type, $speedup ]; > 14:34 camelia rakudo-moar 42f34f: OUTPUT: «[["Make", > "R::I::SET_LINE_ENDING_ON_HANDLE", "4.1x", "Faster"], Mu, Mu]␤»
Some skipfudges due to this bug were added as part of testing another feature: https://github.com/perl6/roast/commit/69d9d04601c8185b149d4fd7 Unfudge when fixed.


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

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