[Ecls-list] bug with ASSERT and MACROLET

Eric Marsden emarsden at laas.fr
Mon Dec 16 05:03:04 UTC 2002


The following function fails to compile in ECL 0.8

   (defun foo ()
     (macrolet ((one (two) `(* ,two 4)))
       (assert (= 1 2))
       (one 2)))

   ;;; Compiling (DEFUN FOO ...).
   (ONE MACRO #<interpreted-function ONE>) is not of type C::FUN.
   Broken at COMPILE-FILE.

Commenting out the call to ASSERT allows the compile to succeed.

Eric Marsden                          <URL:http://www.laas.fr/~emarsden/>

More information about the ecl-devel mailing list