Is there a command to halt the interpreter in Common Lisp?

前端 未结 5 665
醉梦人生
醉梦人生 2021-02-12 09:57

I\'m looking for an expression that will cause the interpreter to exit when it is evaluated.

I\'ve found lots of implementation-specific ones but none in the HyperSpec,

5条回答
  •  星月不相逢
    2021-02-12 10:25

    There is no standard way to exit a CL environment. To find out how to do it in the implementation you're using, read its documentation.

    In sbcl, (sb-ext:quit) will do the trick. For clisp, it's (ext:exit). The clisp documentation for the command is at http://clisp.sourceforge.net/impnotes.html#quit

提交回复
热议问题