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

前端 未结 5 666
醉梦人生
醉梦人生 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:18

    Since most Lisps import a quit function into CL-USER, CL-USER::QUIT is a good guess without knowing the implementation specific package where it is.

    (cl-user::quit)
    

    Note the two colons, since QUIT does not need to be exported from the CL-USER package.

提交回复
热议问题