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

Ranges and hyper-ops don't mix #1709

Closed
p6rt opened this issue Apr 20, 2010 · 5 comments
Closed

Ranges and hyper-ops don't mix #1709

p6rt opened this issue Apr 20, 2010 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Apr 20, 2010

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

Searchable as RT74530$

@p6rt
Copy link
Author

p6rt commented Apr 20, 2010

From @colomon

colomon​: rakudo​: (-<<(1..10)).perl.say
p6eval​: rakudo 5a0581​: OUTPUT«maximum recursion depth exceeded␤current
instr.​: 'perl6;Iterable;list' pc 10791 (src/builtins/Role.pir​:111)␤»
colomon​: rakudo​: (-<<(1...10)).perl.say
p6eval​: rakudo 5a0581​: OUTPUT«[-1, -2, -3, -4, -5, -6, -7, -8, -9, -10]␤»

jnthn​: rakudo​: (-<<(1..10))
p6eval​: rakudo 5a0581​: OUTPUT«maximum recursion depth exceeded␤current
instr.​: 'perl6;Iterable;list' pc 10791 (src/builtins/Role.pir​:111)␤»

--
Solomon Foster​: colomon@​gmail.com
HarmonyWare, Inc​: http://www.harmonyware.com

@p6rt
Copy link
Author

p6rt commented Aug 12, 2010

From @coke

On Tue Apr 20 07​:47​:45 2010, Solomon wrote​:

colomon​: rakudo​: (-<<(1..10)).perl.say
p6eval​: rakudo 5a0581​: OUTPUT«maximum recursion depth exceeded␤current
instr.​: 'perl6;Iterable;list' pc 10791 (src/builtins/Role.pir​:111)␤»
colomon​: rakudo​: (-<<(1...10)).perl.say
p6eval​: rakudo 5a0581​: OUTPUT«[-1, -2, -3, -4, -5, -6, -7, -8, -9, -10]␤»

jnthn​: rakudo​: (-<<(1..10))
p6eval​: rakudo 5a0581​: OUTPUT«maximum recursion depth exceeded␤current
instr.​: 'perl6;Iterable;list' pc 10791 (src/builtins/Role.pir​:111)␤»

All of these now work. Assigning to moritz++ for testing.

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Aug 12, 2010

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

@p6rt
Copy link
Author

p6rt commented Aug 19, 2010

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

@p6rt p6rt closed this as completed Aug 19, 2010
@p6rt
Copy link
Author

p6rt commented Aug 19, 2010

From @kyleha

This is an automatically generated mail to inform you that tests are now available in t/spec/S03-metaops/hyper.t

commit 04675adc7064fc85c97811a4ac4dac8d4861abc0
Author​: moritz <moritz@​c213334d-75ef-0310-aa23-eaa082d1ae64>
Date​: Thu Aug 19 20​:25​:24 2010 +0000

  [t/spec] test for RT #​74530, hyper ops and ranges should mix
 
  git-svn-id​: http://svn.pugscode.org/pugs@&#8203;32064 c213334d-75ef-0310-aa23-eaa082d1ae64

Inline Patch
diff --git a/t/spec/S03-metaops/hyper.t b/t/spec/S03-metaops/hyper.t
index 0d09abd..f3df177 100644
--- a/t/spec/S03-metaops/hyper.t
+++ b/t/spec/S03-metaops/hyper.t
@@ -716,6 +716,11 @@ my @e;
     eval_lives_ok '10 >>+++<< 14', 'can use hypers with local scoped user-defined operators';
 } 
 
+# RT #74530
+{
+    is ~(-<<(1..3)), '-1 -2 -3', 'ranges and hyper ops mix';;
+}
+
 done_testing;
 
 # vim: ft=perl6

@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