[Openmcl-devel] Generating a warning when loading fasls with duplicate function definitions

Burton Samograd burton.samograd at gmail.com
Tue Jul 10 15:29:45 PDT 2012


Say I have x.lisp:

(defun x (x) (* x x))

and x2.lisp:

(defun x (x) (* x x x))

Compile both of the files:

(compile-file "x.lisp" :output-file "x.lo")
(compile-file "x2.lisp" :output-file "x2.lo")

and then load them:

(load "x.lo")
(load "x2.lo")

No warning is printed about the redefinition of the function x when
x2.lo is loaded.  Is there a way to get CCL to print a warning message
when such a redefinition occurs (as SBCL does)?

--
Burton Samograd




More information about the Openmcl-devel mailing list