emacs-devel
[Top][All Lists]
Advanced

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

Re: integer overflow


From: Stefan Monnier
Subject: Re: integer overflow
Date: Sat, 06 Mar 2010 10:45:12 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (gnu/linux)

>>> Can you summarize how it's supposed to work?
>> The change affects the Lisp reader: reading "536870912" or any larger
>> number now gives you a float Lisp object, instead of an integer Lisp
>> object (since there is no way to represent 536870912 or larger as
>> integers).  536870911 and below are still read as integers.
> What's the point of doing that?  I would much prefer if read would just
> raise an error.

There are many cases where it's important to read an integer from some
other program, so it's important to be able to read integers larger the
Elisp's largest fixnum (tho less so for integers larger than the
host system's natural "int").
Examples are file sizes, process ids, user ids, ...


        Stefan




reply via email to

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