# New Ticket Created by David Warring # Please include the string: [perl #131965] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=131965 >
This is OK: % perl6 -e'my $size = 2; my @xref[$size,3] = ([1,2,3], [4,5,6]); say @xref' [[1 2 3] [4 5 6]] But this isn't: % perl6 -e'my $size = 0; my @xref[$size,3] = (); say @xref' Illegal dimension in shape: 0. All dimensions must be integers bigger than 0 in block <unit> at -e line 1 % perl6 -v This is Rakudo version 2017.08 built on MoarVM version 2017.08.1 implementing Perl 6.c. Just seems an unreasonable restriction that the major shape size of an array can't be zero.