[m-rev.] for review: fix tests/hard_coded for float output problems in il grade

Fergus Henderson fjh at cs.mu.OZ.AU
Sat Nov 9 04:29:56 AEDT 2002


On 08-Nov-2002, Peter Ross <pro at missioncriticalit.com> wrote:
> Here the problem is that io__write_float has different behaviour on
> the .NET backend to the C backend.  This is because even though .NET
> prints to 15 significant digits, it removes any trailing zeros.
> 
> Anyone have a problem with adding this?

Yes.  IMHO the right fix is to change the output on .NET to match what is
output on the C back-end.  Mercury users shouldn't have to deal with the
output being different for different back-ends; that would make it harder
to write portable Mercury code.

-- 
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