A NOTE ON BEFORE AND AFTER METAMETHODS

Authors
Citation
C. Zimmermann, A NOTE ON BEFORE AND AFTER METAMETHODS, ACM SIGPLAN NOTICES, 32(4), 1997, pp. 37-46
Citations number
14
Categorie Soggetti
Computer Sciences","Computer Science Software Graphycs Programming
Journal title
Volume
32
Issue
4
Year of publication
1997
Pages
37 - 46
Database
ISI
SICI code
Abstract
With the advent of object-oriented metalevel architectures, a new prog ramming paradigm in the shape of before and after metamethods has arri ved. This paradigm allows the hidden execution of additional functiona lity that previously had to be inserted explicitly into the source cod e of a program. Typically, this was implemented as a pair of invocatio ns to same initialisation and finalisation routines. This paper provid es the formal proof that before and after metamethods have the same ex pressive power as the explicit invocation of functionality, resulting in the equivalence of both paradigms.