make

Returns a general instance of its first argument.

The instance returned is guaranteed to be a general instance of type but not necessarily a direct instance of type.  This liberality allows make to be called on an abstract class or other type; it can instantiate and return a direct instance of one of the concrete subtypes of the abstract class or type.

The instance returned may or may not be newly allocated.  If a new instance is allocated, make will call initialize on the instance before returning it.

Programmers may customize make for particular classes by defining methods specialized by singleton specializers.  These methods may obtain the default make behavior, if desired, by calling <next-method>.

Note that the <class> method on make returns a newly allocated direct instance of its first argument.

Exported from

Modifiers

open

Arguments

typeAn instance of <type>.
#rest supplied-init-argsKeyword/argument pairs.  See each class for keys applicable to that class.
#all-keysThis function accepts any keyword argument.

Values

instanceAn <object>, which must be a general instance of type.
Performs instance initialization that cannot be specified declaratively by a class definition.
The class of all Dylan classes.
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 types, including classes and other types.
The class of all Dylan objects.