On Thu, Aug 10, 2000 at 07:47:47PM -0600, Tony Olekshy wrote:
> With the approach proposed in RFC 88 (Structured Exception
> Handling Mechanism), you could write that as:
> 
>       try {
>       } catch {
>           switch ($_[0]->name) {
>               case IO { ... }
>               case Socket { ... }
>           }
>       }

Nope, the error are objects, so you need to allow for inheritance.

Graham.

Reply via email to