GNU bug report logs -
#32463
27.0.50; (logior -1) => 4611686018427387903
Previous Next
Reported by: Katsumi Yamaoka <yamaoka <at> jpl.org>
Date: Fri, 17 Aug 2018 03:31:02 UTC
Severity: normal
Found in version 27.0.50
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Paul Eggert <eggert <at> cs.ucla.edu>
> Date: Sat, 18 Aug 2018 11:48:11 -0700
> Cc: 32463 <at> debbugs.gnu.org
>
> It would be weird for lsh to act one way for negative bignums, and a different
> and incompatible way for negative fixnums. Instead, I suggest that we deprecate
> lsh, as it doesn't make sense any more now that integers have unbounded size.
It is IMO absurd for us to deprecate a valid and useful operation just
because we added bignums. If we cannot agree on its semantics for
bignums (which would surprise me), then it is better to make it not
work for bignums at all than deprecate it for fixnums.
> While we're deprecating it, we can make (lsh A B) signal an error if A is a
> bignum and B is negative, since there's nothing we can do there that is
> reasonable and is compatible with the fixnum behavior.
If that's the best we can do, fine. But it doesn't require
deprecating lsh while we are at it.
This bug report was last modified 6 years and 320 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.