科技报告

Except for Exception Handling. 收藏

除了异常处理。
摘要
Exception handling in Ada has a number of well-known problems. It allows for the propagation of unhandled and anonymous exceptions, it is error-prone and it is inappropriate for some language features including tasking and tagged types. Ada programs with exceptions are difficult to understand, develop, modify or analyse, and the exception handling features can be misused in a number of ways. In this paper we introduce the requirements for good exception handling features. We classify the problems with Ada exception handling into two subsets: serious conceptual problems that require an improvement of the language features, and problems attributable to the misuse of the existing features. Problems in the second category can be solved by improving programmers' understanding of the features and ways of using them.
摘要译文
Ada中的异常处理存在许多众所周知的问题。它允许传播未处理的和匿名的异常,它容易出错,并且不适合某些语言功能,包括任务和标记类型。具有异常的Ada程序难以理解,开发,修改或分析,并且异常处理功能可能以多种方式被滥用。在本文中,我们介绍了良好异常处理功能的要求。我们将Ada异常处理的问题分为两个子集:需要改进语言特征的严重概念问题,以及可归因于滥用现有特征的问题。第二类中的问题可以通过改进程序员对特征和使用方法的理解来解决。
Romanovsky, A.; Sanden, B.. Except for Exception Handling.[R]. US: PB, 2003