From: Marco Antoniotti
Subject: Re: temporary variable assignment
Date: 
Message-ID: <scfiuuoo3nl.fsf@infiniti.PATH.Berkeley.EDU>
It does.  Use the 'special' declaration to make the variable 'dynamic'
(or 'fluid').


Starting lisp ...
; Loading #p"/home/porsche2/varaiya/marcoxa/.cmucl-init.lisp".
;; Loading #p"/home/porsche2/varaiya/marcoxa/lang/cl/lisp-utilities/defsystem/defsys30/defsystem.lisp".
CMU Common Lisp 18a, running on infiniti.PATH.Berkeley.EDU
Send bug reports and questions to your local CMU CL maintainer, 
<·······@path.berkeley.edu>, or to<··········@cs.cmu.edu>.
Loaded subsystems:
    Python 1.0, target SPARCstation/Solaris 2
    CLOS based on PCL version:  September 16 92 PCL (f)
    CLX X Library MIT R5.02
    Motif toolkit and graphical debugger 1.0
* 
* (defun foo (x)
    (declare (special y))
    (+ x y))
FOO
* (compile 'foo)
FOO
NIL
NIL
* (let ((y 23))
    (declare (special y))
    (foo 44))
67
* (let ((y 2))
    (declare (special y))
    (foo 44))
46
* 

-- 
Marco Antoniotti
==============================================================================
California Path Program - UC Berkeley
Richmond Field Station
tel. +1 - 510 - 231 9472