[Ecls-list] bug in LOAD
Robert Dodier
robert.dodier at gmail.com
Sun Apr 27 04:25:13 UTC 2008
Hi,
I am working with ECL as built from CVS 2008-04-22,
gcc 3.3.2, running on Fedora 1. (Yes, it is ancient. Oh well.)
I get the following error. Clisp, SBCL, GCL, and CMUCL are all happy with FOO.
>(defun foo (x) (load (concatenate 'string "/tmp/" x)))
FOO
> (foo "foo1.lisp")
;;; Loading "/tmp/foo1.lisp"
"/tmp/foo1.lisp" is not of type STREAM.
Broken at EVAL.No restarts available.
Broken at FOO.
However this function BAR is OK.
>> (defun bar (x) (load x))
BAR
>> (bar "/tmp/foo1.lisp")
;;; Loading "/tmp/foo1.lisp"
HELLO
"/tmp/foo1.lisp"
Content of /tmp/foo1.lisp:
(format t "HELLO~%")
I wonder what's going on here.
Thanks for your help.
Robert Dodier
More information about the ecl-devel
mailing list