[Top][All Lists]

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

bug#8611: fixnum arithmetic should not wrap around

From: Paul Eggert
Subject: bug#8611: fixnum arithmetic should not wrap around
Date: Wed, 04 May 2011 08:06:20 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20110223 Thunderbird/3.1.8

On 05/04/11 05:57, Stefan Monnier wrote:
> Conversion to float is in general not a good idea

OK, how about using bignum instead?  That would be quite a bit of
work, and I wouldn't want to embark on it if the answer is going
to be "don't fix something that isn't broken".  Clearly the
current behavior is broken at some level, since we have mathematical
nonsense like adding two positive numbers gives you a negative number,
and this results in much real Emacs Lisp code going into contortions;
but if the overall idea is that this is good enough, then I should
not bother.

Perhaps I should raise this on the emacs-devel list?  It seems to be
a more general point, one that surely has come up before.

reply via email to

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