How not to write a loop
Rahul Dhesi
dhesi at bsu-cs.UUCP
Mon Feb 15 02:13:35 AEST 1988
In article <1988Feb11.200149.25172 at sq.uucp> msb at sq.UUCP (Mark Brader) writes:
> Floating point numbers should never be used for counting.
Never say never. (Well, hardly ever say never.) At least one
widely-used implementation of Snobol4 successfully uses a floating
point register to count the number of statements executed, relying on
floating point overflow being detected by hardware so that the program
may be aborted when the user-specified statement count limit is
reached.
--
Rahul Dhesi UUCP: <backbones>!{iuvax,pur-ee,uunet}!bsu-cs!dhesi
More information about the Comp.lang.c
mailing list