Skip Menu |
Report information
Id: 130575
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: cpan [at] zoffix.com
Cc:
AdminCc:

Severity: (no value)
Tag: Bug
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: [BUG] Variables inside a try {} block used with `andthen` don't always get updated to correct values
Download (untitled) / with headers
text/plain 517b
<ZoffixW> m: sub itcavuc ($c) { (try say $c) andthen 42 }; itcavuc $_ for 2, 4, 6 <camelia> rakudo-moar 7d5bbe: OUTPUT«2␤4␤6␤» <ZoffixW> m: sub itcavuc ($c) { try {say $c} andthen 42 }; itcavuc $_ for 2, 4, 6 <camelia> rakudo-moar 7d5bbe: OUTPUT«2␤2␤4␤» The block `try {}` seems to have repeated `2` and missing `6` in the output. The bug seems to occur with a combination of a block form of `try` and `andthen` (which thunks) A few more cases: https://irclog.perlgeek.de/perl6/2017-01-17#i_13936831


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org