At 19:54 +0100 98/09/24, [EMAIL PROTECTED] wrote:
>>   The generalization of the Int type, as I see it, is a binary type, a
>> sequence of bit of fixed length, which has special operations such as
>> right/left shift with under/overflow, rotations, signed/unsigned arithmetic
>> and Boolean bit operations.
>
>agreed, though I think there is a strong case of providing most of
>those operations on Integer too (perhaps at a different type).

  Thinking a bit more of it, I think one should just put those operations
into a binary type, and support conversions back and forth the Integer
type. This will simplify the logic, Integers only doing things typical for
integers, the binary type only doing typical binary operations (including
arithmetic).

  Hans Aberg
                  * Email: Hans Aberg <mailto:[EMAIL PROTECTED]>
                  * Home Page: <http://www.matematik.su.se/~haberg/>
                  * AMS member listing: <http://www.ams.org/cml/>



Reply via email to