Skip to content
Snippets Groups Projects
Commit c3d26825 authored by ram's avatar ram
Browse files

Changed EVAL to use the recorded CONSTANT-VALUE when evaluating constants so

that interpreting references to constants in the compiler environment works
better.
parent 0de76db3
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
(ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/eval.lisp,v 1.10 1991/05/08 14:33:25 ram Exp $")
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/eval.lisp,v 1.11 1991/08/21 19:05:15 ram Exp $")
;;;
;;; **********************************************************************
;;;
......@@ -95,7 +95,10 @@
(declare (optimize (safety 1)))
(let ((exp (macroexpand original-exp)))
(typecase exp
(symbol (symbol-value exp))
(symbol
(if (eq (info variable kind exp) :constant)
(values (info variable constant-value exp))
(symbol-value exp)))
(list
(let ((name (first exp))
(args (1- (length exp))))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment