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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,421f00454ed1208d X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!l21g2000vba.googlegroups.com!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: SPARK - runtime checks question Date: Fri, 19 Jun 2009 14:16:56 -0700 (PDT) Organization: http://groups.google.com Message-ID: <37f397cf-1a80-4182-a30f-7e10be653868@l21g2000vba.googlegroups.com> References: <8d79ac48-d35d-4717-aca3-68f036de0de3@f16g2000vbf.googlegroups.com> <14f911e0-bd4c-4068-bae7-3d234cbed652@x1g2000prh.googlegroups.com> NNTP-Posting-Host: 83.79.46.147 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1245446216 8613 127.0.0.1 (19 Jun 2009 21:16:56 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 19 Jun 2009 21:16:56 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: l21g2000vba.googlegroups.com; posting-host=83.79.46.147; posting-account=bMuEOQoAAACUUr_ghL3RBIi5neBZ5w_S User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.11) Gecko/2009060214 Firefox/3.0.11,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:6547 Date: 2009-06-19T14:16:56-07:00 List-Id: On 19 Cze, 20:33, Adam Beneschan wrote: > Apologies in advance for answering a question you didn't ask, but... > any reason not to simply return abs(X-Y)? Sure. This example was a minimal version of the problem which I have found while fooling around with some other algorithm. I did not want to complicate the discussion and posted the smallest function that still exhibits the same issue and also makes sense in isolation. -- Maciej Sobczak * www.msobczak.com * www.inspirel.com Database Access Library for Ada: www.inspirel.com/soci-ada