Subject: Re: Determining lexically bound variables inside a macro
From: rpw3@rpw3.org (Rob Warnock)
Date: Wed, 04 Aug 2004 08:38:52 -0500
Newsgroups: comp.lang.lisp
Message-ID: <m6idnecru-Vxe43cRVn-pQ@speakeasy.net>
Mario S. Mommer  <m_mommer@yahoo.com> wrote:
+---------------
| I am very thankfull that cmucl has ext:*top-level-auto-declare*,
| and that setting it to NIL on startup lets me do
| 
|   (setf x 1)
| 
| on toplevel without declaring a special variable.
+---------------

But you'll still get a warning:

    > (setf ext:*top-level-auto-declare* nil)

    NIL
    > (setf x 123)
    ; 

    ; Warning: This variable is undefined:
    ;   X
    ; 
    123
    > 


-Rob

-----
Rob Warnock			<rpw3@rpw3.org>
627 26th Avenue			<URL:http://rpw3.org/>
San Mateo, CA 94403		(650)572-2607