Next: Closures, Up: Dynamic-Extent Declarations [Contents][Index]
&rest
argument listsRest argument lists can be allocated on the stack by declaring the
rest argument variable dynamic-extent
. Examples:
(defun foo (x &rest rest) (declare (dynamic-extent rest)) ...) (defun bar () (lambda (&rest rest) (declare (dynamic-extent rest)) ...))