Writing Common Lisp code that executes from the command line, but not inside the interpreter
- 阅读更多 关于 Writing Common Lisp code that executes from the command line, but not inside the interpreter
问题 When writing Common Lisp code, I use SLIME. In particular, I compile the buffer containing definitions of functions by using C-C C-k, and then switch to the REPL to run those functions. Putting executable code to run those functions in the buffer does not appear to work so well. If the code has bugs it can make a mess. It would be handy to have a way to include code that doesn't get compiled in the buffer, but do get run from the command line, e.g. when doing sbcl --script foo.lisp If that