[elephant-devel] SBCL compilation warnings

Leslie P. Polzer sky at viridian-project.de
Tue Jun 16 08:28:38 UTC 2009


Yarek Kowalik wrote:
> 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) ?

Yes, it should. Thanks for spotting this, I've filed it as bug #84.

  Leslie

-- 
http://www.linkedin.com/in/polzer





More information about the elephant-devel mailing list