From 81ff26eebedc619b5b3b6b0d0733851476e1af9f Mon Sep 17 00:00:00 2001
From: ram <ram>
Date: Wed, 24 Apr 1991 20:30:13 +0000
Subject: [PATCH] Changed ONCE-ONLY to use LET* instead of LET, cause I was
 tired of not being able to do it, and it can't cause any problems that I can
 think of.

---
 code/extensions.lisp | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/code/extensions.lisp b/code/extensions.lisp
index 5a9b3d6d0..6235946fd 100644
--- a/code/extensions.lisp
+++ b/code/extensions.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/extensions.lisp,v 1.8 1991/02/08 13:32:27 ram Exp $")
+  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/extensions.lisp,v 1.9 1991/04/24 20:30:13 ram Exp $")
 ;;;
 ;;; **********************************************************************
 ;;;
@@ -305,11 +305,10 @@
 ;;;
 (defmacro once-only (specs &body body)
   "Once-Only ({(Var Value-Expression)}*) Form*
-  Create Let which evaluates each Value-Expression, binding a temporary
-  variable to the result, and wrapping the Let around the result of the
+  Create a Let* which evaluates each Value-Expression, binding a temporary
+  variable to the result, and wrapping the Let* around the result of the
   evaluation of Body.  Within the body, each Var is bound to the corresponding
-  temporary variable.  If the Value-Expression is a constant, then we just pass
-  it through."
+  temporary variable."
   (let ((n-binds (gensym))
 	(n-temp (gensym)))
     (collect ((names)
@@ -324,10 +323,10 @@
 	   `(let ((,n-temp (gensym)))
 	      (,n-binds `(,,n-temp ,,name))
 	      (setq ,name ,n-temp)))))
-      `(let ,(names)
+      `(let* ,(names)
 	 (collect ((,n-binds))
 	   ,@(temp-binds)
-	   (list 'let (,n-binds) (progn ,@body)))))))
+	   (list 'let* (,n-binds) (progn ,@body)))))))
 
 
 ;;;; DO-ANONYMOUS:
-- 
GitLab