Created
July 10, 2018 15:21
-
-
Save y2q-actionman/6b36b0c9c0be5dba901d79a2d36a5c0b to your computer and use it in GitHub Desktop.
defconstant と read-eval
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
(in-package :cl-user) | |
(eval-when (:load-toplevel) | |
(princ "defining") | |
(defconstant +hoge+ 100) | |
(princ "defined")) | |
(defvar *hoge* | |
(+ #.+hoge+ ; error | |
+hoge+)) | |
;;; エラーの理由 | |
;;; https://franz.com/support/documentation/10.1/doc/compiling.htm#defining-persistence-2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment