
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 03/31/2010 01:26 PM, DE wrote:
i find 'nan()' member function confusing i would have made 'nan()' a static function returning NaN and renamed the former to 'is_nan()' similarly 'odd()' and 'even()' could be 'is_odd()' and 'is_even()' but these are less confusing to me [...]
The nan function was named that way because it fits in with the naming of the even and odd functions (which n1694 specified). For what it's worth, I agree with you; the constructor taking a not_a_number object was my second choice, not my first.
by the way does 'token' produced by 'block_exceptions()' presumes the previous state? i.e. does its destructor restore the state its constructor switched from?
Yes, it does. That's why they have to be destroyed in the opposite order they were created, or the operation is undefined.
and are we going to continue in this thread?
If anyone wants to. :-) - -- 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/ iEYEARECAAYFAkuz5cUACgkQp9x9jeZ9/wQ4EwCgstJy/Ie31r100Dj08s3y2TPQ VQwAnRgNZFSWoZ2zO8E6JwEL/QV4eQ/i =/Adi -----END PGP SIGNATURE-----