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: a07f3367d7,ed872c72866dab2b X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!goblin2!goblin.stu.neva.ru!feeder.erje.net!newsfeed.straub-nv.de!noris.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Fri, 17 Jun 2011 11:10:03 +0200 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.18) Gecko/20110613 Thunderbird/3.1.11 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: expression function bug or think? References: <678085105329914667.504682rmhost.bauhaus-maps.arcor.de@news.arcor.de> <87wrglwmao.fsf@mid.deneb.enyo.de> <4dfb168a$0$7608$9b4e6d93@newsspool1.arcor-online.net> In-Reply-To: <4dfb168a$0$7608$9b4e6d93@newsspool1.arcor-online.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4dfb19eb$0$7629$9b4e6d93@newsspool1.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 17 Jun 2011 11:10:03 CEST NNTP-Posting-Host: ff734911.newsspool1.arcor-online.net X-Trace: DXC=@QA=bDNk6Fmf1oJaJ0@dmgic==]BZ:afn4Fo<]lROoRa<`=YMgDjhgb8V6?4Fa=5gkPCY\c7>ejVh]6e7R_Z_47hg3\KO13LUQa X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:19910 Date: 2011-06-17T11:10:03+02:00 List-Id: On 6/17/11 10:55 AM, Georg Bauhaus wrote: > when others => > [constraint_error when > not (n - 1 >= 0) > "range check failed"] > [constraint_error when > not (n - 2 >= 0) > "range check failed"] > return natural(functions__fib2 (n - 1) + functions__fib2 (n - > 2)); This looks like a suitable place for the range checks. Maybe they are being been move upwards for case statements the way Adam has described?