[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#32252: [PATCH] %o and %x now format signed numbers
From: |
Andy Moreton |
Subject: |
bug#32252: [PATCH] %o and %x now format signed numbers |
Date: |
Thu, 26 Jul 2018 13:54:21 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (windows-nt) |
On Thu 26 Jul 2018, Paul Eggert wrote:
> Brett Gilio wrote:
>> I wonder what you mean by "just
>> works" in contrast to what Eli suggested about the inconsistency in
>> behavior between the different function definitions for fixnums and
>> bignums.
>
> I meant that ordinarily Emacs Lisp programmers should not worry whether an
> integer's internal representation is a bignum or a fixnum. Functions like +,
> -,
> *, /, format, read, etc. should accept and generate mathematically correct
> integer values regardless of whether their inputs are fixnums or bignums. If
> an integer fits in a fixnum it is presumably represented that way, but by and
> large Emacs programs should not care about this detail.
>
> That is how other Lisps do it, it works well for them, and Emacs Lisp should
> do likewise.
That is uncontroversial for arithmetic operations, but how are bitwise
logical operations handled in other lisps with bignums ?
AndyM
bug#32252: [PATCH] %o and %x now format signed numbers, Andy Moreton, 2018/07/24
bug#32252: [PATCH] %o and %x now format signed numbers, Andy Moreton, 2018/07/25
bug#32252: [PATCH] %o and %x now format signed numbers, Andy Moreton, 2018/07/26
bug#32252: [PATCH] %o and %x now format signed numbers,
Andy Moreton <=
bug#32252: [PATCH] %o and %x now format signed numbers, Helmut Eller, 2018/07/26