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

Argument to .rotate insufficiently Cool in Rakudo #4433

Closed
p6rt opened this issue Jul 24, 2015 · 5 comments
Closed

Argument to .rotate insufficiently Cool in Rakudo #4433

p6rt opened this issue Jul 24, 2015 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Jul 24, 2015

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

Searchable as RT125677$

@p6rt
Copy link
Author

p6rt commented Jul 24, 2015

From @masak

<Begi> my $key = prompt('> '); @​letters.rotate($key)
<Begi> Why should I convert $key to Int ?
<PerlJam> Begi​: do you really mean to ask, why doesn't Perl do it for me?
<Begi> perljam : yes
<PerlJam> I dunno
<PerlJam> I suppose it could
<masak> PerlJam​: I don't understand. what's Perl not doing here?
<jnthn> m​: my @​a = 1..10; say @​a.rotate(2)
<camelia> rakudo-moar f971db​: OUTPUT«3 4 5 6 7 8 9 10 1 2␤»
<jnthn> m​: my @​a = 1..10; say @​a.rotate('2')
<camelia> rakudo-moar f971db​: OUTPUT«Type check failed in binding $n;
expected 'Int' but got 'Str' [...]
<jnthn> Not Cool
<masak> yeah, I'd say that's very uncool.
* masak submits rakudobug

@p6rt
Copy link
Author

p6rt commented Jul 24, 2015

From @masak

Fixed f14919c in. Needs test coverage before closing.

@p6rt
Copy link
Author

p6rt commented Jul 24, 2015

From @perlpilot

On Fri Jul 24 06​:56​:34 2015, masak wrote​:

Fixed f14919c in. Needs test coverage before closing.

Tests added in Raku/roast@49828cd

--

-Scott (PerlJam/perlpilot)

@p6rt
Copy link
Author

p6rt commented Jul 24, 2015

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Jul 24, 2015

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

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