Y-OR-N-P and YES-OR-NO-P only accept STRING for format control
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
per http://
test case:
(lambda () (y-or-n-p NIL))
; in: LAMBDA ()
; (Y-OR-N-P NIL)
;
; caught WARNING:
; Constant NIL conflicts with its asserted type STRING.
; See also:
; The SBCL Manual, Node "Handling of Types"
;
; compilation unit finished
; caught 1 WARNING condition
#<FUNCTION (LAMBDA ()) {102AFE005B}>
(funcall *)
debugger invoked on a SIMPLE-TYPE-ERROR in thread
#<THREAD "main thread" RUNNING {1003964623}>:
Value of NIL in (Y-OR-N-P NIL) is NIL, not a STRING.
;; expected waiting for y or n
(just calling y-or-n-p at repl doesn't trigger problem)
tested on "1.3.1.249-7467960" x8664 linux and "1.3.10.66-58829d6" x8664 windows
Changed in sbcl: | |
status: | Fix Committed → Fix Released |
In 78a65c2116de287 f945bfa65eca5fd d2908e4bda