Skip to content

Instantly share code, notes, and snippets.

@joekarma
Created January 28, 2013 01:25
Show Gist options
  • Save joekarma/4652004 to your computer and use it in GitHub Desktop.
Save joekarma/4652004 to your computer and use it in GitHub Desktop.
(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