(Gentoo Linux, SBCL 1.2.10)
I am at the very start of using LISP.
The code:
Code: Select all
(let ((stream) (initialized 0))
(defun readsched (schedname)
;; if called the first time, open stream
(if (eql initialized 0 )
(with-open-file (stream schedname)))
;; set the variable to 1, so stream will not be opened twice
(setq initialized 1))
;; read a line from the stream, which is returned
(read-line stream nil 'foo))
sbcl does a deep guru medition (or if you an Atari guy: Throws three bombs

What did I wrong here?
Best regards,
mcc