From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: 8611@debbugs.gnu.org
Subject: bug#8611: fixnum arithmetic should not wrap around
Date: Tue, 03 May 2011 21:31:21 -0300 [thread overview]
Message-ID: <jwv1v0fz4vw.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <4DC0491D.7090404@cs.ucla.edu> (Paul Eggert's message of "Tue, 03 May 2011 11:27:41 -0700")
> If Emacs Lisp treats too-large integers as floating point when
> reading, then its arithmetic should be consistent with this. In the
> long run perhaps it'd be better for Emacs Lisp to use bignums, but
> until then, consistent use of floating point is a better substitute
> than wraparound.
I'm not convinced that auto-switching to floats is a good idea.
Using floats has only been introduced in order to handle things like
file sizes larger than 4GB, i.e. the int-to-float conversion currently
only ever happens for values that come from some C function.
Until now the current inconsistency hasn't seemed to be a source of real
problems, so I'd rather leave it as is. If/when we bump into a real
problem due to it, we'll then see what needs to be done.
Stefan
next prev parent reply other threads:[~2011-05-04 0:31 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-03 18:27 bug#8611: fixnum arithmetic should not wrap around Paul Eggert
2011-05-04 0:31 ` Stefan Monnier [this message]
2011-05-04 1:19 ` Paul Eggert
2011-05-04 1:29 ` Stefan Monnier
2011-05-04 4:10 ` Paul Eggert
2011-05-04 12:57 ` Stefan Monnier
2011-05-04 15:06 ` Paul Eggert
2011-05-04 18:41 ` Stefan Monnier
2016-06-11 0:00 ` Noam Postavsky
2018-08-22 17:02 ` bug#8611: close Tom Tromey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv1v0fz4vw.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=8611@debbugs.gnu.org \
--cc=eggert@cs.ucla.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.