User Tools


Standard Generic Function ALLOCATE-INSTANCE

Syntax

  • allocate-instance class &rest initargs &key &allow-other-keysnew-instance

Method Signatures

Arguments and Values

Description

The generic function allocate-instance creates and returns a new instance of the class, without initializing it. When the class is a standard class, this means that the slots are unbound; when the class is a structure class, this means the slots' values are unspecified.

The caller of allocate-instance is expected to have already checked the initialization arguments.

The generic function allocate-instance is called by make-instance, as described in \secref\ObjectCreationAndInit.

Affected By

None.

Exceptional Situations

None.

See Also

Notes

The consequences of adding methods to allocate-instance is unspecified. This capability might be added by the Metaobject Protocol.

\issue{ALLOCATE-INSTANCE:ADD} \issue{INITIALIZATION-FUNCTION-KEYWORD-CHECKING}