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

Range.perl doesn't round-trip Range endpoints #5605

Open
p6rt opened this issue Aug 20, 2016 · 1 comment
Open

Range.perl doesn't round-trip Range endpoints #5605

p6rt opened this issue Aug 20, 2016 · 1 comment
Labels

Comments

@p6rt
Copy link

p6rt commented Aug 20, 2016

Migrated from rt.perl.org#129018 (status was 'new')

Searchable as RT129018$

@p6rt
Copy link
Author

p6rt commented Aug 20, 2016

From zefram@fysh.org

Range.new(min => (2..3), max => (4..5)).perl
2..3..4..5
Range.new(min => (2..3), max => (4..5)).perl.EVAL
===SORRY!=== Error while compiling /home/zefram/usr/rakudo/rakudo/EVAL_5
Operators '..' and '..' are non-associative and require parentheses
at /home/zefram/usr/rakudo/rakudo/EVAL_5​:1
------> 2..3.^.4..5

Even if the precedence problem were fixed, this kind of expression from
Range.perl would run into a restriction of the ".." operator​:

(2..3)..(4..5)
Range objects are not valid endpoints for Ranges
  in block <unit> at <unknown file> line 1

-zefram

@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