|
From: | Paul Eggert |
Subject: | bug#32463: 27.0.50; (logior -1) => 4611686018427387903 |
Date: | Sat, 18 Aug 2018 15:27:40 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
Pip Cet wrote:
Are you suggesting we revert to the previous behavior, and try to come up with an interpretation for bignums that somehow extends the previous behavior?
I think Eli was suggesting reverting lsh to the traditional behavior for fixnums, for backwards-compatibility reasons.
There doesn't seem to be a good way to extend this behavior for bignums, so I installed the attached patch that simply makes it an error to invoke (lsh A B) where A is a negative bignum and B is negative. This patch also adds some test cases inspired by one of your previous emails (thanks).
0001-Restore-traditional-lsh-behavior-on-fixnums.txt
Description: Text document
[Prev in Thread] | Current Thread | [Next in Thread] |