develooper Front page | perl.perl5.porters | Postings from January 2022

Re: Pre-RFC: try/catch/finally and generic finally blocks

Thread Previous | Thread Next
From:
Paul "LeoNerd" Evans
Date:
January 19, 2022 11:48
Subject:
Re: Pre-RFC: try/catch/finally and generic finally blocks
Message ID:
20220119114835.05836efa@shy.leonerd.org.uk
On Wed, 19 Jan 2022 10:38:09 +0900
Yuki Kimoto <kimoto.yuki@gmail.com> wrote:

> Are "next" and "redo" a compilation error in the finally block?

Nothing is currently a compile-time error (though I have plans to add
that sometime before 5.336 release); they're all detected at runtime.

next/last/redo all act the same way, so I didn't add three tests for
each on the hope that the `last` one is sufficient for them all.

-- 
Paul "LeoNerd" Evans

leonerd@leonerd.org.uk      |  https://metacpan.org/author/PEVANS
http://www.leonerd.org.uk/  |  https://www.tindie.com/stores/leonerd/

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About