Common Lisp the Language, 2nd Edition  next up previous contents
index Next: Defstruct Slot-Options Up: Structures Previous: How
to Use  19.3. Using the Automatically Defined Constructor
Function  After you have defined a new structure with defstruct,
you can create instances of this structure by using the
constructor function. By default, defstruct defines this
function automatically. For a structure named foo, the
constructor function is normally named make-foo; you can specify
a different name by giving it as the argument to the
:constructor option, or specify that you don't want a normal
constructor function at all by using nil as the argument (in
which case one or more ``by-position'' constructors should be
requested; see section 19.6).  A call to a constructor function,
in general, has the form          slot-keyword-1 form-1
slot-keyword-2 form-2   All arguments are keyword arguments.
Each slot-keyword should be a keyword whose name matches the
name of a slot of the structure (defstruct determi