
Next: Creating Objects
Up: Creating Classes
Previous: Instance Variables
The initial value expressions, initialization procedure expression,
and instance variable name handling procedure expression are all
evaluated in a special environment. This environment includes:
- the environment of the class definition
- all instance variables and initialization variables of this class
- the variable this, which is bound to the object itself
- each superclass-name, bound to the value of
the corresponding superclass-expression
- superclass-name-init for each superclass-name,
bound to an initialization procedure for the corresponding
superclass
The initial value expressions are evaluated at the time that an object
is created. They are evaluated in the order in which they are defined
(even across clauses and including sequence clauses).
PLT