TY - GEN
T1 - Zero-Overhead Exception Handling Using Metaprogramming
AU - Hof, Markus
AU - Mössenböck, Hanspeter
AU - Pirkelbauer, Peter
PY - 1997/3
Y1 - 1997/3
N2 - 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.
AB - 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.
U2 - 10.1007/3-540-63774-5_122
DO - 10.1007/3-540-63774-5_122
M3 - Conference proceedings
T3 - Lecture Notes in Computer Science (LNCS)
SP - 423
EP - 431
BT - SOFSEM'97, Milovy, Czech Republic
PB - Springer
ER -