Skip to content

In the REPL, in continuation lines after a comment, only the first form is evaluated

When an input line in the REPL has multiple forms, then

  • in the first line, all forms are evaluated,
  • but if the first line was a comment, then from the second line on the first form is evaluated.

Test case from Vibhu Mohindra:

$ clisp -q -ansi -norc
[1]> ; a comment line makes repl ignore second expr on following line
nil (format t "~&never printed~%")
NIL
[2]>
(+ 2 2)
4
[3]>