7 Selected definitions
Smith was the first to introduce reflection in a programming language with 3Lisp. He defines reflection as:
- An entity's integral ability to represent, operate on, and otherwise deal with itself in the same way that it represents, operates on, and deals with its primary subject matter.
In the context of meta-object protocols, Bobrow refines the definition as follows:
- Reflection is the ability of a program to manipulate as data, something representing the state of the program during its own execution. There are two aspects of such manipulation: introspection and intercession (...) Both aspects require a mechanism for encoding the execution state as data; providing such an encoding is called reification.
Maes proposed some definitions for reflexive programming:
- A computational system is something that reasons about and acts upon some part of the world, called the domain of the system.
- A computational system may also be causally connected to its domain. This means that the system and its domain are linked in such a way that if one of the two changes, this leads to an effect upon the other.
- A meta-system is a computational system that has as its domain another computational system, called its object-system. (...) A meta-system has a representation of its object-system in its data. Its program specifies meta-computation about the object-system and is therefore called a meta-program.
- Reflection is the process of reasoning about and/or acting upon oneself.
- A reflective system is a causally connected meta-system that has as object-system itself. The data of a reflective system contain, besides the representation of some part of the external world, also a causally connected representation of itself, called self-representation of the system. [...] When a system is reasoning or acting upon itself, we speak of reflective computation.
- A language with a reflective architecture is a language in which all systems have access to a causally connected representation of themselves.
- A programming environment has a meta-level architecture if it has an architecture that supports meta-computation, without supporting reflective computation.
- The meta-object of an object X represents the explicit information about X (e.g. about its behavior and its implementation). The object X itself groups the information about the entity of the domain it represents.