ToC DocOverview CGDoc RelNotes Index PermutedIndex
Allegro CL
Home Previous Up Next Table of Contents Index
  ANSI Common Lisp   3 Evaluation and Compilation   3.4 Lambda Lists

3.4.3 Specialized Lambda Lists

A specialized lambda list is used to specialize a method for a particular signature and to describe how arguments matching that signature are received by the method. The defined names in the next figure use specialized lambda lists in some way; see the dictionary entry for each for information about how.

Standardized Operators that use Specialized Lambda Lists
defmethod defgeneric

A specialized lambda list can contain the lambda list keywords shown in the next figure.

Lambda List Keywords used by Specialized Lambda Lists
&allow-other-keys &key &rest
&aux &optional

A specialized lambda list is syntactically the same as an ordinary lambda list except that each required parameter may optionally be associated with a class or object for which that parameter is specialized.

lambda-list::= ({var | (var [specializer])*
[&optional {var | (var [init-form [supplied-p-parameter ]])}*]
[&rest var]
[&key {var | ({var | (keyword-name var)} [init-form [supplied-p-parameter ]])}* [&allow-other-keys]]
[&aux {var | (var [init-form ] )}*])


Home Previous Up Next Table of Contents Index
© Franz Inc. All Rights Reserved - File last updated 2022-07-25