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.2 Generic Function Lambda Lists

A generic function lambda list is used to describe the overall shape of the argument list to be accepted by a generic function. Individual method signatures might contribute additional keyword parameters to the lambda list of the effective method.

A generic function lambda list is used by defgeneric.

A generic function lambda list has the following syntax:

lambda-list::= {var}*
 [&optional {var | (var)}*]
 [&rest var]
 [&key {var | ({var | (keyword-name var)})}* [&allow-other-keys]]

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

Lambda List Keywords used by Generic Function Lambda Lists
&allow-other-keys &optional
&key &rest

A generic function lambda list differs from an ordinary lambda list in the following ways:


Home Previous Up Next Table of Contents Index
© Franz Inc. 1998-2015 - File last updated 03-23-2015