Skip Menu |
Report information
Id: 129018
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: zefram [at]

Severity: (no value)
Tag: Bug
Platform: (no value)
Patch Status: (no value)
VM: (no value)

Date: Sat, 20 Aug 2016 18:19:56 +0100
To: rakudobug [...]
Subject: [BUG] Range.perl doesn't round-trip Range endpoints
From: Zefram <zefram [...]>
Download (untitled) / with headers
text/plain 568b
Show quoted text
> => (2..3), max => (4..5)).perl
2..3..4..5 Show quoted text
> => (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: Show quoted text
> (2..3)..(4..5)
Range objects are not valid endpoints for Ranges in block <unit> at <unknown file> line 1 -zefram

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at