[perl #112838] [BUG] 'let' doesn't revert the value of variables in the case of 'fail' from a routine in Rakudo

2012-05-09 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #112838] # in the subject line of all future correspondence about this issue. # https://rt.perl.org:443/rt3/Ticket/Display.html?id=112838 > r: my $a = 3; sub transaction { let $a = 7; say "a = $a. Commiting"; OUTER::<$a>

[perl #112838] [BUG] 'let' doesn't revert the value of variables in the case of 'fail' from a routine in Rakudo

2012-05-09 Thread Carl Mäsak via RT
r: sub f { UNDO say 'leaving A' ; fail "foo"; }; f rakudo 24ffc9: ( no output ) yeah. should trigger. same underlying cause Hmm, what underlies that one? because let uses an UNDO to restore the state And UNDO...doesn't trigger here?