[Ecls-list] turn off auto declares
Juan Jose Garcia Ripoll
lisp at arrakis.es
Mon Nov 21 06:27:01 UTC 2005
On Mon, 2005-11-21 at 15:15 +0100, Juan Jose Garcia Ripoll wrote:
> I do not see this work on my copy of CMUCL (19a-release-20 from
> Debian) :-/ See below that the behavior of the compiler is independent
> of the variable they mention: it always signals an error on undefined
> variables, much like ECL. Hence, ext:*top-level-auto-declare* only
> controls how interpreted forms behave, and even then it is only a
> warning, not an error.
>
> Is this what you meant?
>
> Juanjo
The following statement was run on one CMUCL session:
> * (setq s 1)
> Warning: Declaring S special.
>
> 1
The following ones in a different one:
> * (setq ext:*top-level-auto-declare* nil)
>
> NIL
> * (compile 'foo '(lambda () (setq s 1)))
> ; Compiling LAMBDA NIL:
> ; Compiling Top-Level Form:
>
> ; In: LAMBDA NIL
>
> ; (SETQ S 1)
> ; Warning: Undefined variable S
> ; ;
>
> ; Warning: This variable is undefined:
> ; S
> ;
>
> ; Compilation unit finished.
> ; 2 warnings
>
>
> FOO
> NIL
> NIL
> * (foo)
>
> 1
As for the lisp image:
CMU Common Lisp CVS release-19a 19a-release-20040728 + minimal debian patches, running on mpq3p32
With core: /usr/lib/cmucl/lisp.core
Dumped on: Fri, 2005-10-14 11:44:34+02:00 on mpq3p32
For support see http://www.cons.org/cmucl/support.html Send bug reports
to the debian BTS.
or to pvaneynd at debian.org
type (help) for help, (quit) to exit, and (demo) to see the demos
Loaded subsystems:
Python 1.1, target Intel x86
CLOS based on Gerd's PCL 2004/04/14 03:32:47
More information about the ecl-devel
mailing list