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

Cannot .splice with Whatever (*) as the second argument in Rakudo #3236

Closed
p6rt opened this issue Sep 20, 2013 · 3 comments
Closed

Cannot .splice with Whatever (*) as the second argument in Rakudo #3236

p6rt opened this issue Sep 20, 2013 · 3 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Sep 20, 2013

Migrated from rt.perl.org#119913 (status was 'resolved')

Searchable as RT119913$

@p6rt
Copy link
Author

p6rt commented Sep 20, 2013

From @masak

<masak> r​: my @​l = 1..100; @​l.splice(5, *, "something borrowed",
"something blue"); say @​l
<camelia> rakudo f86a1a​: OUTPUT«Cannot call 'Real'; none of these
signatures match​:␤​:(Mu​:U \v​: Mu *%_) [...]
<masak> splice I am dissapoint.
* masak submits rakudobug
<masak> r​: my @​l = 1..100; @​l.splice(5, 100, "something borrowed",
"something blue"); say @​l
<camelia> rakudo f86a1a​: OUTPUT«1 2 3 4 5 something borrowed something blue␤»
<masak> if * isn't spec'd to work in that place, it clearly should be :)
* TimToady plays a voluntary on his pipe organ

@p6rt
Copy link
Author

p6rt commented Jul 25, 2015

From @perlpilot

On Fri Sep 20 10​:10​:00 2013, masak wrote​:

<masak> r​: my @​l = 1..100; @​l.splice(5, *, "something borrowed",
"something blue"); say @​l
<camelia> rakudo f86a1a​: OUTPUT«Cannot call 'Real'; none of these
signatures match​:␤​:(Mu​:U \v​: Mu *%_) [...]
<masak> splice I am dissapoint.
* masak submits rakudobug
<masak> r​: my @​l = 1..100; @​l.splice(5, 100, "something borrowed",
"something blue"); say @​l
<camelia> rakudo f86a1a​: OUTPUT«1 2 3 4 5 something borrowed something
blue␤»
<masak> if * isn't spec'd to work in that place, it clearly should be
:)
* TimToady plays a voluntary on his pipe organ

Appears to do the right thing now​:

➤ perl6 -e 'my @​l = 1..100; @​l.splice(5, *, "something borrowed", "something blue"); say @​l'
1 2 3 4 5 something borrowed something blue

Test added in Raku/roast@f4caecb

--

-Scott (PerlJam/perlpilot)

@p6rt
Copy link
Author

p6rt commented Jul 25, 2015

@perlpilot - Status changed from 'new' to 'resolved'

@p6rt p6rt closed this as completed Jul 25, 2015
@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