[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Don't (SORT <list of strings> 'ALPHALESSP), or else...
- To: BUG-LISP at MIT-MC
- Subject: Don't (SORT <list of strings> 'ALPHALESSP), or else...
- From: David C. Plummer <DCP at MIT-MC>
- Date: Sun, 20 Sep 81 19:15:00 GMT
- Original-date: 20 September 1981 15:15-EDT
:l<space>
n
(make-string 0)
;Loading ...
""
(sort '("foo" "bar") 'alphalessp)
;Loading SORT 12
;(NIL "bar" "foo") NIL CLOBBERED
;BKPT FAIL-ACT
(sort '("foo" "bar" "baz") 'alphalessp)
;(NIL "baz" "foo") NIL CLOBBERED
(sort '("this" "is" "a" "test") 'alphalessp)
;; this eats CPU time, but never returns.
;; even after all this
(sort '(|this| |is| |a| |test|) 'alphalessp)
(/a |is| |test| |this|)
;; so something is wrong in the string package.
;; also, alphalessp of strings seems to work.