每次我尝试将使用的文件重新加载DEFCONSTANT
到 slime repl 中时,它都会抱怨我重新绑定常量。我如何告诉它我希望它这样做,或者有什么简单的方法可以让 slime 退出并在重新编译使用常量的文件时重新加载劣质 lisp 进程?
1 回答
1
Alternatives:
- Move constants into their own file, which, hopefully, doesn't change very often.
- Change the constants into vars until you build a release candidate. Your Release TODO list should contain an item that tells you to convert these vars back into constants. In other words, temporarily change
DEFCONSTANT
toDEFVAR
.
于 2012-03-05T16:51:04.460 回答