Download RC 8059
Transcript
RC 8059 (#34988) 1 / 1 4 / 8 0 Computer Science 14 pages Exception Handling and ~ a t Abstraction a Andrew P. Blackt Programming Research Group, University of Oxford and Thomas J. Watson Research Center, IBM Corporation Abstract: A simple treatment of exception conditions in algebraic specifications is presented. The method uses type unions and is also applicable to programs. The extensive use of unions is not practical in many programming languages because of the verbose and baroque constructions required to deal with them. Rather than introduce specialized facilities for exception handling it is proposed that a simpler syntax be adopted for unions. Key Words and Phrases: Abstract Data Types, Algebraic Specifications, Data Abstraction, Data Types, Errors, Exceptions, Partial Operators, Type Unions, Unions, Variant Records. C.R. Categories: 4.2, 4.22, 4.34. t Author's present address: Oxford University Computing Laboratory, 45, Banbury Road, Oxford, OX2 6PE, England