[elephant-devel] SBCL compilation warnings

Yarek Kowalik yarek.kowalik at gmail.com
Fri Dec 5 20:22:41 UTC 2008


I get several warnings in SBCL 1.0.20 that are related to use of
dynamic-extent.  For example, here it complains about 'COLLECT' is an
indefined variable:

(defun get-query-instances (constraints)
  "Get a list of instances according to the query constraints"
  (declare (dynamic-extent constraints))
  (let ((list nil))
    (flet ((collect (inst)
         (push inst list)))
      (declare (dynamic-extent collect))
      (map-class-query #'collect constraints))))

There are 5 warnings for patterns just like the one above.

Should (dynamic-extent collect) be in fact (dynamic-extent #'collect) ?

Yarek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/elephant-devel/attachments/20081205/ef79e85a/attachment.html>


More information about the elephant-devel mailing list