Improved computation of closures

This commit is contained in:
Juan Jose Garcia Ripoll 2008-08-02 17:22:22 +02:00
parent 4cbc223f1a
commit 8bf6b9117e

View file

@ -107,10 +107,9 @@
;; ...or if it directly calls a function
(dolist (f funs)
;; .. which has a full closure
(when (not (child-p f fun))
(case (fun-closure fun)
(CLOSURE (setf closure 'CLOSURE))
(LEXICAL (unless closure (setf closure 'LEXICAL))))))
(case (fun-closure f)
(CLOSURE (setf closure 'CLOSURE))
(LEXICAL (unless closure (setf closure 'LEXICAL)))))
;; ...or the function itself is referred across CB
(when closure
(when (or (fun-ref-ccb fun)