emacs-devel
[Top][All Lists]
Advanced

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

Re: Using the GNU GMP Library for Bignums in Emacs


From: Clément Pit-Claudel
Subject: Re: Using the GNU GMP Library for Bignums in Emacs
Date: Sun, 22 Apr 2018 14:34:34 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0

On 2018-04-22 14:04, Daniel Colascione wrote:
> On 04/22/2018 10:43 AM, Paul Eggert wrote:
>> 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.
> 
> Bugs will inevitably arise. One possibility is just dealing with them; 
> another might be to predicate bignum support on a lexical-binding-like flag.

Or we could make them different types: the usual operators on fixnums would 
return fixnums, and the usual operators on bignums would return bignums. Mixing 
both would always return a bignum.

The difficulty is whether we should change existing Emacs function to return 
bignums.

Clément.



reply via email to

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