Questions about NCEG

Doug Gwyn gwyn at smoke.BRL.MIL
Tue Jun 5 02:33:25 AEST 1990


In article <1762 at tkou02.enet.dec.com> diamond at tkou02.enet.dec.com (diamond at tkovoa) writes:
>Unfortunately, C errs in the opposite direction.  It would have been
>better to say nothing about precision (as is done for arithmetic and
>fprintf) than to encourage excessive carelessness.  The existing wording
>really ought to be changed one way or another by the interpretation
>committee.

To the contrary, apart from the fact that X3J11 during the interpretations
phase is not in a position to change wording in the standard, the existing
wording on this was carefully hammered out in consultation with numerical
programming specialists, and includes sufficient latitude to guarantee
reasonable implementation on a variety of real architectures.

I don't think the wording "encourages excessive carelessness", because to
assure conformance with the specification the implementor has to do pretty
much the same work as he would were the specification even tighter (which
it couldn't be without causing problems for many existing architectures).
After taking that much trouble to ensure adequate precision, why would one
expect the implementor to then deliberately provide suboptimal precision?



More information about the Comp.std.c mailing list