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
Range.rotor and List.rotor behave differently (^11 .rotor: 1.5) #5104
Comments
From @AlexDanielCode: Result: Hmm, I'm not sure if this was intended to work, but: Code: Result: My biggest problem with this is that it is not consistent. <perlpilot> AlexDaniel: IMHO, any non-Int values for the number of items to So, having fractional counts is not required. Either we throw an error (a Same problem also appears on RHS of a pair: Code: Result: But Code: Result: This time it is a compile-time error (without a line number!), not run |
From @skidsNote that the examples above have changed behavior to note the precedence mistake: $ perl6 -e '^11.say' ...but the meat of the ticket is still valid: $ perl6 -e '(^11).rotor(1.5)' $ perl6 -e 'say (0,1,2,3,4,5,6,7,8,9,10).rotor(1.5)' $ perl6 -e 'say (^11).flat.rotor(1.5)' $ perl6 -e 'say (^11).list.rotor(1.5)' $ perl6 -e 'say (^11).List.rotor(1.5)' |
The RT System itself - Status changed from 'new' to 'open' |
From @zoffixznetThanks for the report. Fixed in rakudo/rakudo@59f040d2b8 -- |
@zoffixznet - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#127424 (status was 'resolved')
Searchable as RT127424$
The text was updated successfully, but these errors were encountered: