Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

undefined variables float-features:single-float-{positive,negative}-infinity #36

Open
stylewarning opened this issue Sep 7, 2024 · 0 comments

Comments

@stylewarning
Copy link

the file float-features.lisp depends on constants.lisp, namely on the constants float-features:single-float-positive-infinity and float-features:single-float-negative-infinity. Since the former comes before the latter in the ASDF definition, we get warnings at compile time:

CL-USER> (asdf:load-system "float-features" :force t)
...
; file: .../float-features/float-features.lisp
; in: DEFUN FLOAT-FEATURES:BITS-SHORT-FLOAT
;     (COND
;      ((NOT (ZEROP FLOAT-FEATURES::SIG))
;       (FLOAT-FEATURES:BITS-SINGLE-FLOAT
;        (LOGIOR (ASH FLOAT-FEATURES::SIGN 31) (ASH 255 23)
;                (ASH FLOAT-FEATURES::SIG 13))))
;      ((ZEROP FLOAT-FEATURES::SIGN) FLOAT-FEATURES:SINGLE-FLOAT-POSITIVE-INFINITY)
;      (T FLOAT-FEATURES:SINGLE-FLOAT-NEGATIVE-INFINITY))
; --> IF 
; ==>
;   (THE T FLOAT-FEATURES:SINGLE-FLOAT-NEGATIVE-INFINITY)
; 
; caught WARNING:
;   undefined variable: FLOAT-FEATURES:SINGLE-FLOAT-NEGATIVE-INFINITY

; ==>
;   (IF (ZEROP FLOAT-FEATURES::SIGN)
;       FLOAT-FEATURES:SINGLE-FLOAT-POSITIVE-INFINITY
;       (THE T FLOAT-FEATURES:SINGLE-FLOAT-NEGATIVE-INFINITY))
; 
; caught WARNING:
;   undefined variable: FLOAT-FEATURES:SINGLE-FLOAT-POSITIVE-INFINITY
; 
; compilation unit finished
;   Undefined variables:
;     FLOAT-FEATURES:SINGLE-FLOAT-NEGATIVE-INFINITY FLOAT-FEATURES:SINGLE-FLOAT-POSITIVE-INFINITY
;   caught 2 WARNING conditions
;   printed 1 note
T
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant