Re: Sbcl feature - symbol occuring at toplevel is not reported with warning



budden <budden01@xxxxxxxxxx> writes:

Hi there!
Darcs marks conflicts in a file with
************
^ ^ ^
v v v

but sbcl compiles such a file without warning. Is it ok?

E.g. lispworks warn that "variable assumed special"

In fact, it seem to be a bug, as

v

would lead to evaluation of v at load time, wouldn't it?
And v is an unbound variable.

$ cat > test.lisp
v v v v v
(princ :one)
*********
(princ :two)
^ ^ ^ ^ ^
$ sbcl
* (compile-file "test")
; loading system definition from
; compiling file "/home/ari/test.lisp" (written 17 OCT 2008 12:08:28 AM):
; compiling V
; compiling V
; compiling V
; compiling V
; compiling V
; compiling (PRINC :ONE)
; compiling *********
; compiling (PRINC :TWO)
; compiling ^
; compiling ^
; compiling ^
; compiling ^
; compiling ^
; file: /home/ari/test.lisp
; in:
; *********
;
; caught WARNING:
; undefined variable: *********

; V
;
; caught WARNING:
; undefined variable: V
;
; caught WARNING:
; undefined variable: V
;
; caught WARNING:
; undefined variable: V

;
; caught WARNING:
; 2 more uses of undefined variable V


; file: /home/ari/test.lisp
; in:
; ^
;
; caught WARNING:
; undefined variable: ^
;
; caught WARNING:
; undefined variable: ^
;
; caught WARNING:
; undefined variable: ^

;
; caught WARNING:
; 2 more uses of undefined variable ^

;
; caught WARNING:
; These variables are undefined:
; ********* V ^
;
; compilation unit finished
; caught 10 WARNING conditions


; /home/ari/test.fasl written
; compilation finished in 0:00:00
#P"/home/ari/test.fasl"
T
T
*

Ten warnings is not quite "without warning." Interestingly, though,
the resulting test.fasl loads just fine, although loading test.lisp
directly hits an error on the first v.
.



Relevant Pages

  • Re: reading file backwards and parsing
    ... a warning, it should have prevented the program from compiling ... I suspect you're operating the compiler in a non- ... > trying to read the log file backwards and compare the first column ...
    (comp.lang.c)
  • Re: Calling a matlab dll in java
    ... I got some warning from compiler as follows: ... C++ exception handler used, ... Specify -GX ... Studio\VC98\include\ostream: while compiling class-template ...
    (comp.soft-sys.matlab)
  • FreeBSD 6.1/AMD64: Celestia 1.3.2/1.4.1 not working?
    ... while compiling works on FreeBSD 6.1-PRE/AMD64, ... 3dsread.cpp:514: warning: unused parameter 'contentSize' ... *** Error code 1 ...
    (freebsd-questions)
  • Re: ATL Issues on VS 2005
    ... I am converting the code to class names (with only start ... this is a warning I get from compiling A.cpp ... again empty (for imports and exports), ...
    (microsoft.public.vc.atl)