
3.2 Making declarations
arglist declaration explicitly specifies the lambda list that is returned by a call to the functionarglist. Anarglist declaration allows you to specify a descriptive lambda list that is helpful to a user. Thearglist declaration has the following form:(declare (arglist declared-arguments))If a function or macro definition does not contain an
arglist declaration, the functionarglist returns the lambda list used in the original source code, as shown in the following example:
> (defun multiply (x y)
    (* x y))
MULTIPLY
> (arglist 'multiply)
(X Y)
> (defun new-multiply (x y)
    (declare (arglist factor1 factor2))
    (* x y))
NEW-MULTIPLY
> (arglist 'new-multiply)
(FACTOR1 FACTOR2)
 
 
 
 
 
 
Generated with Harlequin WebMaker