
----- Original Message ----- From: "Chad Nelson" <chad.thecomfychair@gmail.com> To: <boost@lists.boost.org> 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? Regards, Vicente