TimToady++ recently worked on this 
(https://github.com/rakudo/rakudo/commit/10aa8bf41c) and it should be in good 
shape now:

$ perl6 -e 'my @array; say @array[*-1]'
Calculated index (-1) is negative, but Array allows only 0-based indexing
  in method gist at src/gen/m-CORE.setting:13776
  in sub say at src/gen/m-CORE.setting:16510
  in block <unit> at -e:1

The exception is now of type X::Subscript::Negative and the error message no 
longer recommends to use [*-1]. It does so when using [-1]:

$ perl6-m -e 'my @array; say @array[-1]'
===SORRY!=== Error while compiling -e
Unsupported use of a negative -1 subscript to index from the end; in Perl 6 
please use a function such as *-1
at -e:1
------> my @array; say @array[-1]⏏<EOL>

There are tests in S02-types/array.t. I'm closing this ticket now.

Reply via email to