Search code examples
lispcommon-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.

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.


Solution

  • 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.