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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9b4538cfeb0c3576 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder.news-service.com!weretis.net!feeder4.news.weretis.net!newsfeed.utanet.at!newsfeed01.chello.at!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Sat, 07 Aug 2010 10:56:29 +0200 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Float conversion References: <9e669a3b-1013-4bd1-b372-5f7dfa46d083@f42g2000yqn.googlegroups.com> <1q5zc0ais535h$.1jqwfxhj9cflc$.dlg@40tude.net> <4c519968$0$6893$9b4e6d93@newsspool2.arcor-online.net> <1d1txn4x3r5xn.1trm4gx9n87gm$.dlg@40tude.net> <1jo4xj7cntwy1$.1ntf9smcka8vf$.dlg@40tude.net> <1d617940-d138-4b8c-a321-ed23b47431b8@x21g2000yqa.googlegroups.com> <1naf3ekl5k916$.f7ugc92galdz$.dlg@40tude.net> <82y6cru1lp.fsf@stephe-leake.org> <77ee8883-ab9f-42c7-94d5-3d85cdc19693@i28g2000yqa.googlegroups.com> <82pqxyu9bw.fsf@stephe-leake.org> <82vd7ps1sc.fsf@stephe-leake.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4c5d1fbd$0$7666$9b4e6d93@newsspool1.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 07 Aug 2010 10:56:29 CEST NNTP-Posting-Host: d252a5a4.newsspool1.arcor-online.net X-Trace: DXC=e_mRgYMGogD6PJ?[X6JIXEic==]BZ:afN4Fo<]lROoRA<`=YMgDjhgBSP;f\ePnKaLPCY\c7>ejVH>R7YkcjGQRF;EWDM1SFH_H X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:12927 Date: 2010-08-07T10:56:29+02:00 List-Id: On 8/7/10 7:54 AM, Shark8 wrote: > Function Min( A, B, C : SOME_TYPE ) is > begin > If A< B AND A< C then > return A; -- We know A is the smallest valued var > here... > elsif B< C then -- and in the ELSE case we know that it is > not the smallest value. > -- If A is equal to C or B then returning > that value is equivalent to returning A's value. > return B; Generalizing, when Min returns not the values but identities, will the equivalence of A and B work when stable sorting is needed? Another question, are there algorithms that rely on the representation of A, B, and C so that equivalence doesn't establish equality? Georg