Handle END when there's an uncaught exception #13

Closed
Ayiko opened this Issue Jun 22, 2013 · 0 comments

Comments

Projects
None yet
1 participant
@Ayiko

Ayiko commented Jun 22, 2013

Example script:

    use v6;
    END say 'let me out!';
    die 'dead';

After the exception is thrown, pressing q will set execution to before the END statement and pressing will tell you "Cannot continue execution after an unhandled exception"...
Ctrl-C is only way out at that point.

If you used r to run and q on the Uncaught exception, it runs END block and exits as expected.

(I'm using Rakudo* perl6 version 2013.05 built on parrot 5.3.0 revision 0)

D:\perl6>perl6 test.pl
dead
  in block  at test.pl:3

let me out!

D:\perl6>perl6-debug test.pl
>>> LOADING test.pl
+ test.pl (1 - 3)
| use v6;
| END say 'let me out!';
| die 'dead';
> (enter)
+ Uncaught Exception
| dead
+ test.pl (1 - 3)
| use v6;
| END say 'let me out!';
| die 'dead';
>  (enter)
Cannot continue execution after an unhandled exception
> q
+ test.pl (1 - 3)
| use v6;
| END say 'let me out!';
| die 'dead';
> (enter)
Cannot continue execution after an unhandled exception
> q
+ test.pl (1 - 3)
| use v6;
| END say 'let me out!';
| die 'dead';
> q
+ test.pl (1 - 3)
| use v6;
| END say 'let me out!';
| die 'dead';
> ^C
D:\perl6\>

@jnthn jnthn closed this in 7d0127e Aug 22, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment