首页> 美国政府科技报告 >Data-Oriented Exception Handling
【24h】

Data-Oriented Exception Handling

机译:面向数据的异常处理

获取原文

摘要

Exception handling mechanisms were added to programming languages to segregatealgorithmic processing from error processing. However, there is no consensus on how to define exceptions. In addition, attaching handlers to control statements clutters source text in much the same way that testing parameters for suitability as inputs for an operation and significance as results does. In this dissertation, we present a definition for exceptions and a set of language features that support our definition by associating exceptions with the operations of a type of handlers with data objects. We call our notation data oriented exception handling to distinguish it from the usual control-oriented versions. We describe the implementation of a pre-processor from our notation to Ada. Case studies of programs indicate that control-oriented exception handling mechanisms are poorly understood and used. Experimental results indicate that data-oriented exception handling can be used to produce programs that are smaller, better structured, and easier to understand and modify. With the exception of pre-processing time, no significant time or space penalty is incurred using data-oriented exception handling.

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号