Zero-Overhead Exception Handling Using Metaprogramming

Markus Hof, Hanspeter Mössenböck, Peter Pirkelbauer

Research output: Chapter in Book/Report/Conference proceedingConference proceedingspeer-review

Abstract

We present a novel approach to exception handling which is based on metaprogramming. Our mechanism does not require language support, imposes no run time overhead to error-free programs, and is easy to implement. Exception handlers are implemented as ordinary procedures. When an exception occurs, the corresponding handler is searched dynamically using the type of the exception as a search criterion. Our implementation was done in the Oberon System but it could be ported to most other systems that support metaprogramming.
Original languageEnglish
Title of host publicationSOFSEM'97, Milovy, Czech Republic
PublisherSpringer
Pages423–431
Number of pages10
DOIs
Publication statusPublished - Mar 1997

Publication series

NameLecture Notes in Computer Science (LNCS)

Fields of science

  • 102 Computer Sciences
  • 102009 Computer simulation
  • 102011 Formal languages
  • 102013 Human-computer interaction
  • 102029 Practical computer science
  • 102022 Software development
  • 102024 Usability research

Cite this