Exceptional C or C with exceptions
- 30 October 1992
- journal article
- Published by Wiley in Software: Practice and Experience
- Vol. 22 (10) , 827-848
- https://doi.org/10.1002/spe.4380221003
Abstract
C does not have exception handling facilities. Errors are handled by examining the value returned by each function and signals (conditions reported to the program) are handled by using library functions. These approaches lead to ad hoc error‐handling techniques and can make programs hard to understand. Exceptional C, a superset of C, provides exception handling facilities. Exceptional C integrates the two techniques used by C programmers (i.e., status values and signals) to handle errors into one unified exception handling mechanism. In this paper, I review exception handling models, specify the criteria used for designing the exception handling facilities in Exceptional C, and then describe these facilities. I also illustrate the use of the exception handling facilities with examples.Keywords
This publication has 5 references indexed in Scilit:
- Exception handling in scientific computingACM Transactions on Mathematical Software, 1988
- An axiomatic treatment of exception handling in an expression-oriented languageACM Transactions on Programming Languages and Systems, 1987
- Exception handling in C programsSoftware: Practice and Experience, 1983
- Exception Handling in CLUIEEE Transactions on Software Engineering, 1979
- Exception handlingCommunications of the ACM, 1975