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
Infinite loop with |"a".."z" #5051
Comments
From @zoffixznetThe slip (|) before a range has higher precedence and it interprets the starting point of the range as a single-item list. This leads to two types of bugs, and both situations should likely be error messages: 1) Infinite loop when range contains letters, as the range starts from 1 and tries to reach the second letter by increasing a number: <ZoffixW> m: .say for |"g".."z"; 2) Incorrect range is produced when numbers are used for the range. It'll always start at 1 and proceed until the end number: Relevant IRC conversation: http://irclog.perlgeek.de/perl6/2016-01-15#i_11894289 |
From @skidsOn Fri, 15 Jan 2016 10:24:16 -0800, cpan@zoffix.com wrote:
I submitted: ...which warns on these: $ perl6 -e 'say |4..5' (don't know why that last one "works", but still worth warning.) It also handles all the ^..^ variants. |
The RT System itself - Status changed from 'new' to 'open' |
From @skidsOn Fri, 06 Oct 2017 19:32:17 -0700, bri@abrij.org wrote:
OK, PR merged in rakudo cb9d2e040 Tests in roast 6e9bab5de These are just worries, not errors, but good enough? |
@zoffixznet - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#127279 (status was 'resolved')
Searchable as RT127279$
The text was updated successfully, but these errors were encountered: