Mercurial > hg > xemacs-beta
changeset 4472:a99eb40f0b5b
Correct an omitted word, expand on bignum equality in the lispref.
2008-05-29 Aidan Kehoe <kehoea@parhasard.net>
* lispref/objects.texi (Equality Predicates):
Expand on bignum equality; correct an omitted word in the last
commit.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Thu, 29 May 2008 18:53:45 +0200 |
parents | 2d39535e1f9d |
children | 0204391fc17c 44d10aae73ef |
files | man/ChangeLog man/lispref/objects.texi |
diffstat | 2 files changed, 13 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/man/ChangeLog Tue May 27 11:58:42 2008 +0200 +++ b/man/ChangeLog Thu May 29 18:53:45 2008 +0200 @@ -1,3 +1,9 @@ +2008-05-29 Aidan Kehoe <kehoea@parhasard.net> + + * lispref/objects.texi (Equality Predicates): + Expand on bignum equality; correct an omitted word in the last + commit. + 2008-05-27 Aidan Kehoe <kehoea@parhasard.net> * lispref/objects.texi (Equality Predicates):
--- a/man/lispref/objects.texi Tue May 27 11:58:42 2008 +0200 +++ b/man/lispref/objects.texi Thu May 29 18:53:45 2008 +0200 @@ -2247,10 +2247,12 @@ @code{eq} returns @code{t} if @var{object1} and @var{object2} are integers with the same value. It is preferable to use @code{=} or -@code{eql} in many contexts for numeric comparison; @pxref{Comparison of -Numbers}. @code{eq} also returns @code{t} if @var{object1} and -@var{object2} are identical characters, though in this case you may -prefer to use @code{char=}. +@code{eql} in many contexts for numeric comparison, especially since +bignums (integers with values that would have otherwise overflowed, only +available on some builds) with the same value are not @code{eq}; +@pxref{Comparison of Numbers}. @code{eq} also returns @code{t} if +@var{object1} and @var{object2} are identical characters, though in this +case you may prefer to use @code{char=}. Also, since symbol names are normally unique, if the arguments are symbols with the same name, they are @code{eq}. For other types (e.g., @@ -2264,7 +2266,7 @@ the same name are not @code{eq}. @xref{Creating Symbols}.) NOTE: Under XEmacs 19, characters are really just integers, and thus -characters and integers with the same numeric are @code{eq}. Under +characters and integers with the same numeric code are @code{eq}. Under XEmacs 20, it was necessary to preserve remnants of this in function such as @code{old-eq} in order to maintain byte-code compatibility. Byte code compiled under any Emacs 19 will automatically have calls to