catch/rethrow

Julio César Carrascal jcesar at phreaker.net
Thu Jun 8 07:22:50 PDT 2006


James Pelcis wrote:
> overly interrupting the program.  I think the rationale is that after 
> you have taken the time to handle an exception, why would you rethrow it?

This is very common:

connection.open();
try {
     // ...
} catch {
     connection.close();
     throw;
}

Of course, I could replace that with the on_scope keyword.



More information about the Digitalmars-d mailing list