New issue
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? Sign in to your account
LTA error message when referring to capture variable exceeding 2**31-1 in Rakudo #3079
Comments
From @masak<diakopter> masak: here's a fun one: |
From @usev6For Moar the limit now seems to be at 2**63 - 2**9 (on a 64-bit system): $ perl6-m -e '$9223372036854775295' For Parrot the limit seems to be 2**63 - 2**10 + 2**7 - 2**4 + 2**2 (don't ask): $ perl6-p -e '$9223372036854774899' JVM can handle even larger numbers as variable names: $ perl6-j -e '$92233720368547752960000' I guess the error message comes from trying to access the respective element of $/ via a subscript: When we get an integer overflow we also get said error message since negative subscripts are not allowed. So, what shall be done about this? I don't think it's worth it to generate a special error message for such large capture variables. |
1 similar comment
From @usev6For Moar the limit now seems to be at 2**63 - 2**9 (on a 64-bit system): $ perl6-m -e '$9223372036854775295' For Parrot the limit seems to be 2**63 - 2**10 + 2**7 - 2**4 + 2**2 (don't ask): $ perl6-p -e '$9223372036854774899' JVM can handle even larger numbers as variable names: $ perl6-j -e '$92233720368547752960000' I guess the error message comes from trying to access the respective element of $/ via a subscript: When we get an integer overflow we also get said error message since negative subscripts are not allowed. So, what shall be done about this? I don't think it's worth it to generate a special error message for such large capture variables. |
@usev6 - Status changed from 'new' to 'open' |
From @diakopter14:14 <diakopter> m: $9223372036854775296 |
@diakopter - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#117161 (status was 'resolved')
Searchable as RT117161$
The text was updated successfully, but these errors were encountered: