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:
Yuki Kimoto
Date:
January 20, 2022 03:55
Subject:
Re: Pre-RFC: try/catch/finally and generic finally blocks
Message ID:
CAExogxOgYLzWMTxoi=PAc5kUHb-mCogWiOSbwqzPjaqxKtN0cg@mail.gmail.com
2022-1-19 20:48 Paul "LeoNerd" Evans <leonerd@leonerd.org.uk> wrote:

> 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.
>
>
Thank you. I understand next/last/redo all act the same way.

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