Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
Migrated from rt.perl.org#126800 (status was 'resolved')
Searchable as RT126800$
The text was updated successfully, but these errors were encountered:
Code for 32-bit system:
my @a[-9999999999999999]; say +@a
Woohoo! Array with negative size!
On 64-bit it is a bit more tricky:
my @a[-9223372036854775808,-2]; say +@a
Just disallow negative numbers and that's it.
Sorry, something went wrong.
Oh, and don't forget about zeros. Zero has to be disallowed as well:
my @a; say @a
Index 0 for dimension 1 out of range (must be 0..-1)
in block <unit> at -e line 1
Fixed in rakudo/rakudo#737 , tests needed.
I added the above examples as tests to S02-types/array-shapes.t with commit Raku/roast@a2617480f4
I'm closing this ticket as 'resolved'.
@usev6 - Status changed from 'new' to 'resolved'
No branches or pull requests