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
Overflow of writing to aliases of numbered captures #6537
Comments
From @zoffixznetApparently it's possible to assign to capture variables to change what the resultant Match will have. The first question: is this actually something specced and supported? Especially the fact that further captures continue their numbering from the capture we wrote into: m: say "hi hi ho" ~~ /(\w+) \s+ $10=[$0] \s+ (\w+)/ If it's not, it needs to be plugged up. And if it is, then it has this is the bug with overflow: m: say "hi" ~~ / $10000000000000000000000000000000000000000000000000000000000000=(\w) (.)/ |
From @smlsOn Mon, 18 Sep 2017 10:45:21 -0700, cpan@zoffix.com wrote:
This is documented in the design docs as intentional: http://design.perl6.org/S05.html#Numbered_scalar_aliasing (Except for the overflow bug, of course.) |
The RT System itself - Status changed from 'new' to 'open' |
From @lizmat
Odd. One would expect something like: $ 6 'use nqp; my $l := nqp::list; nqp::bindpos($l,10000000000000000000000000000000000000000000000000000000000000,42)' for an error. |
Migrated from rt.perl.org#132121 (status was 'open')
Searchable as RT132121$
The text was updated successfully, but these errors were encountered: