; More accurate text about how equal
compares various objects
* doc/lispref/objects.texi (Equality Predicates): Attempt at improving the text further (bug#72888).
This commit is contained in:
parent
5fd75133cf
commit
2ca7d5649c
1 changed files with 6 additions and 4 deletions
|
@ -2413,10 +2413,12 @@ the converse is not always true.
|
||||||
@end group
|
@end group
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
The @code{equal} function recursively compares the contents of objects
|
The @code{equal} function compares strings and bool-vectors by value.
|
||||||
if they are integers, strings, markers, lists, cons cells, vectors,
|
Numbers are compared by type and numeric value, using @code{eql}.
|
||||||
bool-vectors, byte-code function objects, char-tables, records, or font
|
Lists, cons cells, vectors, records, markers, char-tables, font objects,
|
||||||
objects.
|
and function objects (closures)@footnote{However, equality of distinct
|
||||||
|
function objects cannot be guaranteed in general.} are compared
|
||||||
|
recursively by using @code{equal} on their constituent parts.
|
||||||
|
|
||||||
Comparison of strings is case-sensitive, but does not take account of
|
Comparison of strings is case-sensitive, but does not take account of
|
||||||
text properties---it compares only the characters in the strings.
|
text properties---it compares only the characters in the strings.
|
||||||
|
|
Loading…
Add table
Reference in a new issue