# New Ticket Created by  Zefram 
# Please include the string:  [perl #129018]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=129018 >


> 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

Reply via email to