Previous: Slot Options, Up: Building Classes
In the options-and-doc arguments to defclass, the
following class options may be specified:
:documentationIf an Emacs-style documentation string is also provided, then this
option is ignored. An Emacs-style documentation string is not
prefixed by the :documentation tag, and appears after the list
of slots, and before the options.
:allow-nil-initform:initform is nil, but
the :type is specifies something such as string then allow
this to pass. The default is to have this option be off. This is
implemented as an alternative to unbound slots.
This options is specific to Emacs, and is not in the CLOS spec.
:abstract:abstract cannot be instantiated, and instead
is used to define an interface which subclasses should implement.
This option is specific to Emacs, and is not in the CLOS spec.
:custom-groupsclass-option command,
however, to see what groups are available.
This option is specific to Emacs, and is not in the CLOS spec.
:method-invocation-order:primary methods in cases of multiple inheritance. The order
affects which method is called first in a tree, and if
call-next-method is used, it controls the order in which the
stack of methods are run.
Valid values are:
:breadth-first:depth-first:c3See Method Invocation, for more on method invocation order.
:metaclassstandard-class.
:default-initargs:initform.
See CLOS compatibility, for more details on CLOS tags versus EIEIO-specific tags.