emacs-devel
[Top][All Lists]
Advanced

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

Re: Checking for loss of information on integer conversion


From: Paul Eggert
Subject: Re: Checking for loss of information on integer conversion
Date: Sun, 18 Feb 2018 18:22:52 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

Stefan Monnier wrote:
I don't think adding actual bignums via (say) libgmp would be
significantly harder than adding such "small bignums.

Although I suspect libgmp would be considerably more of a pain than small bignums (e.g., due to the memory-allocation hassle) I agree we should spend our limited development time on true bignums rather than on small ones. Emacs already links to libgmp so this shouldn't introduce any new dependencies. However, this is all a matter for a later day.

> On 64bit systems (and 32bit systems built with wide-ints),
> I don't see such a clear need to convert a large integer into a float,
> so on those systems I think it's OK to just signal an error.

I'll take a look into doing things that way, and into following Eli's suggestion to make it configurable.



reply via email to

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