Skip to content

Instantly share code, notes, and snippets.

@y2q-actionman
Created July 10, 2018 15:21
Show Gist options
  • Save y2q-actionman/6b36b0c9c0be5dba901d79a2d36a5c0b to your computer and use it in GitHub Desktop.
Save y2q-actionman/6b36b0c9c0be5dba901d79a2d36a5c0b to your computer and use it in GitHub Desktop.
defconstant と read-eval
(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