|
From: | Paul Eggert |
Subject: | Re: Using the GNU GMP Library for Bignums in Emacs |
Date: | Sun, 22 Apr 2018 10:43:15 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 |
Philipp Stephani wrote:
integers are currently documented to use modular arithmetic (
We'll need to change the documentation for modular arithmetic, since integers will no longer overflow.
and they are documented to be pure value types, i.e. same-valued integers are the same objects. Especially the second property is widely used.
This property is used only for fixnums now (since bignums do not exist yet), and we can keep this property for fixnums. We could also keep it for bignums, by hashing all bignums, though I doubt whether it's worth the expense.
[Prev in Thread] | Current Thread | [Next in Thread] |