Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Spurious SBCL warning #77

Open
lukego opened this issue Nov 10, 2020 · 1 comment
Open

Spurious SBCL warning #77

lukego opened this issue Nov 10, 2020 · 1 comment

Comments

@lukego
Copy link

lukego commented Nov 10, 2020

SBCL seems to be inferring that DROP-WHILE returns an array when its argument type is unknown? Haven't debug further yet but wanted to record here now.

XILINX> (lambda (x) (rest (drop-while #'identity x)))
; in: LAMBDA (X)
;     (REST (DROP-WHILE #'IDENTITY XILINX::X))
; ==>
;   (CDR (DROP-WHILE #'IDENTITY XILINX::X))
; 
; caught STYLE-WARNING:
;   Derived type of
;     (SB-KERNEL:VECTOR-SUBSEQ* SB-C::SEQ SB-C::START SB-C::END)
;   in
;     (DROP-WHILE #'IDENTITY X)
;   is
;     (VALUES (SIMPLE-ARRAY * (*)) &OPTIONAL),
;   conflicting with their asserted type
;     LIST.
;   See also:
;     The SBCL Manual, Node "Handling of Types"
; 
; compilation unit finished
;   caught 1 STYLE-WARNING condition
#<FUNCTION (LAMBDA (X)) {52A66EBB}>
@phoe
Copy link
Contributor

phoe commented Feb 6, 2022

I can't reproduce this on SBCL 2.2.0 and modern Serapeum - is this still an issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants