Re: &REST variable OBJECTS must be dynamic-extent.
Frode Vatvedt Fjeld <[email protected]> Sun, 17 Apr 2005 20:45:42 +0200
| Newsgroups | gmane.lisp.movitz.devel |
|---|---|
| Message-ID | <[email protected]> |
Shawn Betts <[email protected]> writes: > It seems sometimes having a &rest variable in a function causes a > strange error. Is this a known issue? It's kind of irritating :). Yes.. it's a remainder from before there was any dynamic memory allocation, and which I haven't come around to fix yet. Please just put in a declaration (and obey it..) until I can get it fixed. (defun silly-fn (&rest objects) (declare (dynamic-extent objects)) (mapcar #'+ objects)) should work. -- Frode Vatvedt Fjeld