On Thu, 29 Dec 2016 17:40:46 -0800, alex.jakime...@gmail.com wrote: > Code: > say (2..1)[^10] > > > Result (2015.12,2016.02): > (Nil Nil Nil Nil Nil Nil Nil Nil Nil Nil) > > > Result (2016.03,HEAD): > Index out of range. Is: 0, should be in 0..-1 > in block <unit> at /tmp/1dJcD1E1Wz line 1 > > Actually thrown at: > in block <unit> at /tmp/1dJcD1E1Wz line 1 > > > Bisectable points to > https://github.com/rakudo/rakudo/commit/7cbf2d302c561d74f38e7bb800d466ec4accfd21 > > > It seems that most things produce Nils in similar cases, so the > previous behavior was correct. For example, (2,3,4)[^5] will give (2 3 > 4 Nil Nil), I don't see any reason for ranges to behave differently > (especially to error out with an error message like this…)
Thank you for the report. This is now fixed. Fix: https://github.com/rakudo/rakudo/commit/c5e54efc88 Tests: https://github.com/perl6/roast/commit/88106f42b3