Created
February 27, 2016 22:41
-
-
Save cbaggers/fd1813b927f40ca50777 to your computer and use it in GitHub Desktop.
Confusion around declare in ecl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Compiling this.. | |
(defun jam () | |
(let ((x #'identity)) | |
(locally (declare (type function x)) | |
(funcall x 10)))) | |
;; .. gives this .. | |
;;; Warning: | |
;;; in file ecl-swank-tmpfile-f8EyN6, position 0 | |
;;; at (DEFUN JAM ...) | |
;;; ! Declaration of type | |
;;; FUNCTION | |
;;; was found for not bound variable X. | |
;; which seems odd as it works on sbcl & ccl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment