是否有命令停止Common Lisp中的解释器? [英] Is there a command to halt the interpreter in Common Lisp?
问题描述
我正在寻找一个表达式,该表达式将导致解释器在求值时退出.
I'm looking for an expression that will cause the interpreter to exit when it is evaluated.
我在HyperSpec中发现了很多特定于实现的内容,但我想知道规范中是否有未定义的内容.我发现(quit)
被CLISP和SLIME识别,而(exit)
仅被CLISP识别,但是我找不到任何引用这两个文件的文档.
I've found lots of implementation-specific ones but none in the HyperSpec, and I was wondering if there were any that I wasn't seeing defined in the specification. I've found that (quit)
is recognized by both CLISP and SLIME, and (exit)
is recognized only by CLISP, but I can't find any documentation that references either of these.
推荐答案
有一个 ASDF库称为shut -it-down 提供了quit
函数,该函数仅具有常见CL实现的情况即可.
There is an ASDF library called shut-it-down that provides a quit
function that works by just having cases for the common CL implementations.
这篇关于是否有命令停止Common Lisp中的解释器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!