On Typesafe Aspect Implementations in C++
Author(s) -
Daniel Lohmann,
Olaf Spinczyk
Publication year - 2005
Publication title -
lecture notes in computer science
Language(s) - English
Resource type - Book series
SCImago Journal Rank - 0.249
H-Index - 400
eISSN - 1611-3349
pISSN - 0302-9743
ISBN - 3-540-28748-5
DOI - 10.1007/11550679_11
Subject(s) - computer science , programming language , compiler , implementation , compile time , type (biology) , join (topology) , point (geometry) , type safety , data type , context (archaeology) , static analysis , theoretical computer science , ecology , paleontology , geometry , mathematics , combinatorics , biology
Compared to other languages, the C++ language offers a less powerful runtime type system, but a very powerful static type system. In AspectC++, this is addressed by an extended join-point API that provides static type information at compile-time and type-safe access to join-point-specific context information. In this paper we show, how the use of static type information leads to the development highly generic, but type-safe aspects that fit well into the C++ language model. This is demonstrated by an example.
Accelerating Research
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom
Address
John Eccles HouseRobert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom