From c3d26825745711e98cadc7472813b0842f027e85 Mon Sep 17 00:00:00 2001
From: ram <ram>
Date: Wed, 21 Aug 1991 19:05:15 +0000
Subject: [PATCH] Changed EVAL to use the recorded CONSTANT-VALUE when
 evaluating constants so that interpreting references to constants in the
 compiler environment works better.

---
 code/eval.lisp | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/code/eval.lisp b/code/eval.lisp
index 4c40e6f19..0cc49c78c 100644
--- a/code/eval.lisp
+++ b/code/eval.lisp
@@ -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))))
-- 
GitLab