Created
January 28, 2013 01:25
-
-
Save joekarma/4652004 to your computer and use it in GitHub Desktop.
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
(defun a-bound-p () | |
(boundp 'a)) | |
(defun funcall-with-a-as-special-variable (function &optional a) | |
(declare (special a)) | |
(funcall function)) | |
(funcall-with-a-as-special-variable | |
#'a-bound-p) ;;; => T | |
(let ((a 5)) | |
(a-bound-p)) ;;; => NIL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment