Path: utzoo!utgpu!water!watmath!clyde!bellcore!decvax!ucbvax!hplabs!hpda!hpsmtc1!hpisod2!decot From: decot@hpisod2.HP.COM (Dave Decot) Newsgroups: comp.lang.c Subject: Re: Another way (How not to write a loop) Message-ID: <2550046@hpisod2.HP.COM> Date: 17 Feb 88 07:51:28 GMT References: <1988Feb11.200149.25172@sq.uucp> Organization: Hewlett Packard, Cupertino Lines: 14 > In article <1988Feb11.200149.25172@sq.uucp> msb@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