Subject: Re: [boost] [xint] Design Question
From: vicente.botet (vicente.botet_at_[hidden])
Date: 2010-06-16 14:31:31
----- Original Message -----
From: "Chad Nelson" <chad.thecomfychair_at_[hidden]>
Sent: Wednesday, June 16, 2010 3:57 PM
Subject: [boost] [xint] Design Question
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> I'm adding an "unsigned" option to the XInt library, so that
> fixed-length integers act exactly like their built-in counterparts. That
> in itself is not a problem, since unsigned fixed-length integers have a
> well-known and standard behavior.
> The problem is: what should the library do if the user asks for an
> unsigned *non*-fixed-length integer?
> Can anyone think of a potential reason for options C or D? Or a reason
> to prefer option B? Or maybe come up with a different idea entirely?
What about making the difference between two unsigned integers a signed integer?