compiled-function-p on closures
Posted: Thu Feb 03, 2011 12:40 pm
Hi there,
Look at this:
(defun foo (x) x)
(compile 'foo)
(compiled-function-p #'foo) ; => T
But:
(let ((y 2))
(defun foo (x) (* x y)))
(compile 'foo)
(compiled-function-p #'foo) ; => NIL
Shouldn't its value be T?
System: CCL-1.6
Look at this:
(defun foo (x) x)
(compile 'foo)
(compiled-function-p #'foo) ; => T
But:
(let ((y 2))
(defun foo (x) (* x y)))
(compile 'foo)
(compiled-function-p #'foo) ; => NIL
Shouldn't its value be T?
System: CCL-1.6