Skip Menu |
Report information
Id: 121647
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: moritz <moritz.lenz+perl [at]>

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

From: Moritz Lenz <moritz [...]>
Subject: let-localized variable doesn't restore value when block exited by exception (JVM only)
To: rakudobug [...]
Date: Sun, 13 Apr 2014 20:39:00 +0200
Download (untitled) / with headers
text/plain 335b
rakudo-jvm fails the second test in this block: { my $a = 42; try { is((let $a = 23; $a), 23, "let() changed the variable in a try block"); die 57; }; is $a, 42, "let() restored the variable, the block was exited using an exception"; } (taken from S04-blocks-and-statements/let.t) the other backends pass this test.

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

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