Created
November 25, 2021 14:12
-
-
Save iomonad/fc8346137eea0971b31212d915e46864 to your computer and use it in GitHub Desktop.
Declaimed lisp var
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
(defvar *foo*) ; a global variable *FOO* | |
(declaim (type (integer 0 10) *foo*)) ; type should be integer between range | |
(setf *foo* 30) ; kaboom |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment