Boost logo

Boost :

Subject: Re: [boost] New Boost.XInt Library, request preliminary review
From: Chad Nelson (chad.thecomfychair_at_[hidden])
Date: 2010-03-29 20:03:39


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/29/2010 05:26 AM, Paul A. Bristow wrote:

> You guys are obviously having a lot of fun with this thread, but I'd
> just like to point out that the *users* wishes can sensibly be
> granted here using policies as John Maddock implemented in the
> Boost.Math library (see the docs if you need reminding how this works
> - and you probably do need reminding because the sensible default
> policies mean that you probably will ignore policies unless the
> library doesn't do what you want).

As I'd only delved into the math toolkit a couple times, I wasn't aware
of them. Thanks for pointing them out.

> While there are things that are mathematically right or wrong, the
> application or user may not consider this important.

I'm trying to set up the library so that, if the user knows what to
expect mathematically, he isn't surprised at any XInt behavior.

> Policies allow the user to get exceptions thrown when something
> 'nasty' happens (like divide by minus zero say), or not.
>
> Existing code may rely on getting a NaN, or may rely on *not* getting
> a NaN. Policies allow users to decide.

Exactly what I was intending with the exception-blocking mechanism.
- --
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/

iEYEARECAAYFAkuxP9kACgkQp9x9jeZ9/wSsZgCeKam5c3niaB1Kp88udO9zNXqO
6L8AnjgSK6R90v82q3kFy4wlndNGtc+b
=jfLy
-----END PGP SIGNATURE-----


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk