[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Checking for loss of information on integer conversion
From: |
Stefan Monnier |
Subject: |
Re: Checking for loss of information on integer conversion |
Date: |
Sun, 18 Feb 2018 17:41:10 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
>> Another possibility would be for Emacs to signal an error when reading any
>> integer that does not fit in fixnum bounds.
> Please do that.
That would be a regression. On 32bit systems, there are various
circumstances where we need to read a 32bit ID (i.e. one that
doesn't fit within our 30bit fixnums), as well as situations where we
read something like a file size which may also fail to fit.
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.
Stefan "still living in the 32bit world"
- Checking for loss of information on integer conversion, Paul Eggert, 2018/02/17
- Re: Checking for loss of information on integer conversion, Eli Zaretskii, 2018/02/18
- Re: Checking for loss of information on integer conversion, Juliusz Chroboczek, 2018/02/18
- Re: Checking for loss of information on integer conversion,
Stefan Monnier <=
- Re: Checking for loss of information on integer conversion, Richard Stallman, 2018/02/19
- Re: Checking for loss of information on integer conversion, Juliusz Chroboczek, 2018/02/22
- Re: Checking for loss of information on integer conversion, Eli Zaretskii, 2018/02/22
- Re: Checking for loss of information on integer conversion, Stefan Monnier, 2018/02/22
- Re: Checking for loss of information on integer conversion, Richard Stallman, 2018/02/23
Re: Checking for loss of information on integer conversion, John Wiegley, 2018/02/19