I suggest looking at D's scope guard statements, which replace most uses of try statements.

http://www.digitalmars.com/d/1.0/statement.html#ScopeGuardStatement

Reply via email to