I want to retrieve the string, generated by write
for further processing without doing any actual output, but write
seems always to also output into the REPL
CL-USER>(let ((err-string (write (make-instance 'error) :stream nil)))
(do-awesome-stuff-with-string err-string))
<ERROR> ;;this is the printing I want to get rid of
"awesome-result"
Why does write
still outputs into the REPL, and how do I get rid of that?