Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!ucsd!ucbvax!unisoft!hoptoad!capmkt!brent From: brent@capmkt.COM (Brent Chapman) Newsgroups: comp.unix.aux Subject: Re: Bug? Message-ID: <364@capmkt.COM> Date: 28 Sep 89 21:28:43 GMT References: <19831@mimsy.UUCP> <15852@dartvax.Dartmouth.EDU> Organization: Capital Market Technology, Inc.; Berkeley, CA Lines: 20 earleh@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. 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@capmkt.com Berkeley, CA 94704 {apple,lll-tis,uunet}!capmkt!brent Phone: 415/540-6400