Re: Sbcl feature - symbol occuring at toplevel is not reported with warning
- From: Ari Johnson <iamtheari@xxxxxxxxx>
- Date: Thu, 16 Oct 2008 23:11:26 -0500
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.
.
- Follow-Ups:
- References:
- Prev by Date: Re: stupid iper newbie question
- Next by Date: Re: If you think Kenny is a jerk...
- Previous by thread: Re: Sbcl feature - symbol occuring at toplevel is not reported with warning
- Next by thread: Re: Sbcl feature - symbol occuring at toplevel is not reported with warning
- Index(es):
Relevant Pages
|