[m-rev.] for review: improve standard library error handling
Fergus Henderson
fjh at cs.mu.OZ.AU
Fri Aug 31 20:29:47 AEST 2001
On 30-Aug-2001, Simon Taylor <stayl at cs.mu.OZ.AU> wrote:
>
> As discussed on mercury-users a while ago, math__pow(0.0, 0.0)
> should return 1.0. This is also consistent with float__pow.
> See <http://www.cs.mu.oz.au/research/mercury/mailing-lists/mercury-users/mercury-users.0104/0130.html>.
There was quite a bit of discussion on that.
See also http://www.cs.mu.oz.au/research/mercury/mailing-lists/mercury-users/mercury-users.0107/0006.html.
I'm not happy with that change, because if I understand correctly it
violates the LIA 2 standard. float__pow(0.0, 0) should be one, but
math__pow(0.0, 0.0) should raise an exception.
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list