
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 03/28/2010 05:47 PM, Scott McMurray wrote:
On 28 March 2010 17:32, Chad Nelson <chad.thecomfychair@gmail.com> wrote:
Which would defeat the primary purpose of the NaN value in the XInt library, which is to have something to return instead of throwing an exception when exceptions are blocked. :-)
On 28 March 2010 17:47, Chad Nelson <chad.thecomfychair@gmail.com> wrote:
No argument. But in the context of an integer library that will exactly represent any value that it can find the memory for, and will throw an exception if it can't get the memory it needs to represent a number exactly, I can't see much need for a specific value to represent infinity.
Do those two quotation imply that NaNs will also result from the "overflow" condition of running out of memory? If so, there's your reason for an Infinity special value.
Sorry, but no. n1692 specifies that it's supposed to throw an std::overflow exception when it can't get the memory it needs to represent a number. - -- Chad Nelson Oak Circle Software, Inc. * * * -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkuv1FgACgkQp9x9jeZ9/wQ+5wCfXDfNnYPZLlLo8IQpKumh6Qcz 0eYAoPPALWzuZo5UbbjS7W1qr6Mx9zTI =c2U4 -----END PGP SIGNATURE-----