Menu

#89 eval-when compile situation problem

closed-fixed
clisp (524)
5
2002-02-20
2002-02-10
No

Using recent (< two weeks) CVS, CLISP fails to
compile-file a file containing the following form:

(eval-when (:compile-toplevel :execute)
(defvar *crap* #.(lambda (arg) (* 10 arg))))

The error is:

Compiling file
/home/dave/packages/sbcl-sbcl-build/crap.lisp ...
*** - PRINT: Despite of *PRINT-READABLY*, #<CLOSURE
:LAMBDA (ARG) (* 10 ARG)> cannot be printed readably.
1. Break [2]>

Since there is no :load-toplevel situation, there
should be no reason for the file-compiler to dump the
compiled closure in the compilation output.

CMUCL and LispWorks for Linux both compile this file
successfully.

-Dave

Discussion

  • Sam Steingold

    Sam Steingold - 2002-02-20

    Logged In: YES
    user_id=5735

    thank you for your bug report.
    the bug has been fixed in the CVS tree.
    you can either wait for the next release (recommended)
    or check out the current CVS tree (see http://clisp.cons.org\)
    and build CLISP from the sources (be advised that between
    releases the CVS tree is very unstable and may not even build
    on your platform).

     
  • Sam Steingold

    Sam Steingold - 2002-02-20
    • status: open --> closed-fixed
     

Log in to post a comment.