From 5b2723366d7b99298bd3729fb5997c5ec6dc822a Mon Sep 17 00:00:00 2001
From: wlott <wlott>
Date: Mon, 24 Feb 1992 01:21:55 +0000
Subject: [PATCH] Reworked the SETQ branch of EVAL to pass more cases (like
 setting alien vars or constants) off to the real interpreter.

---
 code/eval.lisp | 26 +++++++++++++++-----------
 1 file changed, 15 insertions(+), 11 deletions(-)

diff --git a/code/eval.lisp b/code/eval.lisp
index 4d7a4fcd1..b7c758b70 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.12 1991/11/06 13:07:11 ram Exp $")
+  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/eval.lisp,v 1.13 1992/02/24 01:21:55 wlott Exp $")
 ;;;
 ;;; **********************************************************************
 ;;;
@@ -137,17 +137,21 @@
 	      (do ((name (cdr exp) (cddr name)))
 		  ((null name)
 		   (do ((args (cdr exp) (cddr args)))
-		       ((null (cddr args))
-			(set (first args) (eval (second args))))
+		       ((null args))
 		     (set (first args) (eval (second args)))))
-		(unless (eq (info variable kind (first name)) :special)
-		  (case *top-level-auto-declare*
-		    (:warn
-		     (warn "Declaring ~S special." (first name)))
-		    ((t))
-		    ((nil)
-		     (return (eval:internal-eval original-exp))))
-		  (proclaim `(special ,(first name)))))))
+		(let ((symbol (first name)))
+		  (case (info variable kind symbol)
+		    (:special)
+		    (:global
+		     (case *top-level-auto-declare*
+		       (:warn
+			(warn "Declaring ~S special." symbol))
+		       ((t))
+		       ((nil)
+			(return (eval:internal-eval original-exp))))
+		     (proclaim `(special ,symbol)))
+		    (t
+		     (return (eval:internal-eval original-exp))))))))
 	   ((progn)
 	    (when (> args 0)
 	      (dolist (x (butlast (rest exp)) (eval (car (last exp))))
-- 
GitLab