GNU bug report logs -
#39557
27.0.60; Elisp manual, doc about bignums
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Mon, 10 Feb 2020 23:56:01 UTC
Severity: wishlist
Found in version 27.0.60
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #41 received at 39557 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
> That's really the _last_ thing we should tell users, not the first.
I installed the first attached patch to move the distinction between fixnums and
bignums to the end of the section.
> Shouldn't it tell you that you get a fixnum whenever the value
> is within the fixnum range (if that's in fact the case)?
It already said that, but apparently not clearly enough. I installed the second
attached patch to try to make things clearer.
> this doc should probably also mention that the numerical value of
> a marker is an integer
It already says "Many of the functions described in this chapter accept markers
for arguments in place of numbers.... When the argument value is a marker, its
position value is used and its buffer is ignored."
> if you compare an integer
> against an integer numeral then you had better use
> `eql', unless you know that both are fixnums
No, it suffices if *either* is a fixnum. For example, (eq 0 FOO) tests whether
FOO is the integer zero, and works regardless of whether FOO is a bignum.
> I'm really surprised this doc got inserted as it is.
I'm not surprised at all. The doc was an improvement over its predecessor, we're
all busy doing other things, and the issues raised in this bug report are low
priority.
If you're still dissatisfied with the manual, I suggest proposing specific
wording changes so that future fixes in this area can be accomplished more
efficiently.
[0001-Reorder-discussion-of-integer-basics.patch (text/x-patch, attachment)]
[0002-Clarify-when-fixnums-are-used.patch (text/x-patch, attachment)]
This bug report was last modified 4 years and 240 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.