[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Sequence searching functions don't use eql by default
- To: info-macl@cambridge.apple.com
- Subject: Sequence searching functions don't use eql by default
- From: John M. Canning <jc@cvl.umd.edu>
- Date: Mon, 2 Jul 90 16:28:25 EDT
In MACL v1.3.2:
(count 1.0 '(1.0 1.0 2.0)) => 0
(count 1.0 '(1.0 1.0 2.0) :test #'eql) => 2
(find 1.0 '(1.0 1.0 2.0)) => nil
(find 1.0 '(1.0 1.0 2.0) :test #'eql) => 1.0
yet in Common Lisp: The Language (first ed., p. 245) it states:
"The basic operation [such as find and count] accepts an item, and elements
are tested for being eql to that item. (A test other than eql can be specified
by the :test or :test-not keyword...)"
MACL seems to be in conflict with the standard! (I'm sorry if I'm
re-reporting a previously disclosed bug).
-John Canning