Bug?

Brent Chapman brent at capmkt.COM
Fri Sep 29 07:28:43 AEST 1989


earleh at eleazar.dartmouth.edu (Earle R. Horton) writes:

# It is in general bad practice to apply an equality test to the result
# of a computation.  Instead of
# 	( a == b )
# use
# 	( ( a < b + MINDOUBLE ) && ( a > b - MINDOUBLE ) )
# 
# MINDOUBLE is in <values.h>.

Yeah, _right_.  Nice, clear, concise code there.  Why shouldn't I reasonably
expect the compiler to do this for me?


-Brent
--
Brent Chapman                                   Capital Market Technology, Inc.
Computer Operations Manager                     1995 University Ave., Suite 390
brent at capmkt.com                                Berkeley, CA  94704
{apple,lll-tis,uunet}!capmkt!brent              Phone:  415/540-6400



More information about the Comp.unix.aux mailing list