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 operator (" " .. " ") infinite list / out of memory #1890
Comments
From js@mysterious.me.ukHi I think I found a bug while playing around with Rakudo. It's the latest commit 7c83e65fb2cda0ddd85e6abe98b18ee7da4a465f Switch sub version of map to take slurpy values. This compiler is built with the Parrot Compiler Toolkit, parrot revision The problem is simple to reproduce: ./perl6 -e 'say " " .. " "' runs out of memory (after a long time). While experimenting I also found ./perl6 -e 'say "" .. ""' Failed allocation of 24445868 bytes We highly suggest you notify the Parrot team if you have not been Version : 2.4.0-devel Dumping Core... In perl 5, " " .. " " returns " " as I would expect. And "" .. "" I also tested "A" .. "A" and "X" .. " " and they did not blow up. I've been told on #perl6 that "" .. "" is maybe supposed to return an I hope this helps. Cheers |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in t/spec/S03-operators/range.t commit 0b4efc616725ff1f53c2747cafa460cd83a4edec [t/spec] test for RT #76226, all-whitespace range Inline Patchdiff --git a/t/spec/S03-operators/range.t b/t/spec/S03-operators/range.t
index 29ab727..8a36cd6 100644
--- a/t/spec/S03-operators/range.t
+++ b/t/spec/S03-operators/range.t
@@ -2,7 +2,7 @@ use v6;
use Test;
-plan 113;
+plan 114;
# L<S03/Nonchaining binary precedence/Range object constructor>
@@ -27,6 +27,8 @@ is ~('z'..'Y'), '', '(..) works on auto-rev uppercase letter .. lowercase let
is ~('Y'..'_'), 'Y Z', '(..) works on letter .. non-letter (1)';
is ~('_'..'Y'), '', '(..) works on auto-rev letter .. non-letter (2)';
+is ~(' '..' '), ' ', 'all-whitespace range works';
+
is ~(3..9-3), "3 4 5 6", "(..) has correct precedence (1)";
is ~(5..9-5), "", "(..) has correct precedence (2)";
is ~(2+1..6), "3 4 5 6", "(..) has correct precedence (3)"; |
The RT System itself - Status changed from 'new' to 'open' |
From @moritzThis has been fixed already, and the test passes. |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#76226 (status was 'resolved')
Searchable as RT76226$
The text was updated successfully, but these errors were encountered: