[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#32252: [PATCH] %o and %x now format signed numbers

From: Paul Eggert
Subject: bug#32252: [PATCH] %o and %x now format signed numbers
Date: Thu, 26 Jul 2018 00:26:43 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

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

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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]