Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unpacking a slurpy in my creates Mus despite working when used in a routine's sig #6165

Open
p6rt opened this issue Mar 28, 2017 · 2 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Mar 28, 2017

Migrated from rt.perl.org#131071 (status was 'new')

Searchable as RT131071$

@p6rt
Copy link
Author

p6rt commented Mar 28, 2017

From @zoffixznet

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]␤»

@p6rt
Copy link
Author

p6rt commented Dec 12, 2017

From @zoffixznet

On Tue, 28 Mar 2017 07​:38​:32 -0700, cpan@​zoffix.com wrote​:

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​: Raku/roast@69d9d04601c8185b149d4fd7

Unfudge when fixed.

@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant