initialize

Performs instance initialization that cannot be specified declaratively by a class definition.

This function provides a way for users to handle initialization of instances which cannot be expressed simply by init specifications.  This is typically needed when a computation requires inputs from multiple initialization arguments or slot values, or a single computation needs to be used to initialize multiple slots.

By convention, all initialize methods should call <next-method> very early, to make sure that any initializations from less specific classes are performed first.

The initialize generic function permits all keywords and requires none.  It does this because the keyword argument checking is performed by the default method on make.

Exported from

Modifiers

open

Arguments

instanceAn instance of <object>.
#all-keysThis function accepts any keyword argument.

Values

#rest objectsInstances of <object>.  The return values are ignored by make.
Summary
Performs instance initialization that cannot be specified declaratively by a class definition.
This method does nothing.

Functions

initialize

This method does nothing.  It is present so that it is always safe for initialize methods to call <next-method>, and so that it is safe for the default make method to call initialize.

Arguments

instanceAn instance of <object>.
Returns a general instance of its first argument.
The common-dylan module.
Whenever possible, we have tried to keep the Dylan module pristine and unextended, preferring to add our extensions to separate modules or libraries.
The class of all Dylan objects.