Another way (How not to write a loop)
Dave Decot
decot at hpisod2.HP.COM
Wed Feb 17 17:51:28 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.
We have a misunderstanding of the word "should", apparently.
Dave Decot
hpda!decot
More information about the Comp.lang.c
mailing list