From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,270d47706116d3c X-Google-Attributes: gid103376,public From: dewar@cs.nyu.edu (Robert Dewar) Subject: Re: Can compilers do this? Date: 1996/02/23 Message-ID: #1/1 X-Deja-AN: 140885570 references: <4gjd6g$mfq@newsbf02.news.aol.com> <4gl344$q4j@wdl1.wdl.loral.com> organization: Courant Institute of Mathematical Sciences newsgroups: comp.lang.ada Date: 1996-02-23T00:00:00+00:00 List-Id: Robert Duff said, answering a question ">My guess is that on that machine signed zeros exist and that -0.0 < 0.0 >and that -0.0 * 0.0 => 0.0, thus the above gives the right answer when >given a -0.0. Ada 83 doesn't say anything about signed zeros." Yes, true, but even in Ada 83 if a compiler (a) generated -0.0 values as the result of executing correct Ada code and (b) gave a result of false for -0.0 = +0.0, or true for -0.0 < +0.0 then this would plainly be a (significant) bug in the compiler