develooper Front page | perl.perl6.language.errors | Postings from August 2000

Re: RFC 88: What does catch "Foo" { } do?

From:
Tony Olekshy
Date:
August 20, 2000 09:15
Subject:
Re: RFC 88: What does catch "Foo" { } do?
Message ID:
39A003E8.D0EE4F6F@avrasoft.com
Graham Barr wrote:
> 
> I am of the opinion that only a class name should follow catch.
> If someone wants to catch based on an expression they should use
>
>   catch {
>     if (<expr>) {
>     }
>     else {
>       # rethrow the error
>     }
>   }

Then you will be glad to know that RFC 88, in the not quite ready
version two release, allows you do to just that.

Yours, &c, Tony Olekshy



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