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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ea5071f634c2ea8b X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Received: by 10.68.59.229 with SMTP id c5mr10877043pbr.6.1322213161251; Fri, 25 Nov 2011 01:26:01 -0800 (PST) Path: lh20ni15950pbb.0!nntp.google.com!news2.google.com!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: Generic-Package Elaboration Question / Possible GNAT Bug. Date: Fri, 25 Nov 2011 10:25:59 +0100 Organization: Ada @ Home Message-ID: References: <7bf9bc32-850a-40c6-9ae2-5254fe220533@f29g2000yqa.googlegroups.com> <4295dc09-43de-4557-a095-fc108359f27f@y42g2000yqh.googlegroups.com> <3snehoqgs8ia$.1nobjem6g6hx6$.dlg@40tude.net> <128rdz2581345$.c4td19l7qp9z$.dlg@40tude.net> <16ipwvpdavifr$.17bxf7if7f6kh$.dlg@40tude.net> <4ecb78b1$0$6643$9b4e6d93@newsspool2.arcor-online.net> <1iofgbqznsviu$.phvidtvxlyj4$.dlg@40tude.net> <4ecbb96e$0$6581$9b4e6d93@newsspool3.arcor-online.net> <743e83a1-c442-444b-a25a-da706e9cd0f9@g7g2000vbd.googlegroups.com> <011f483a-e0d7-4475-89e6-506802e88b9b@i6g2000vbe.googlegroups.com> NNTP-Posting-Host: IQsgShqvlwBVRETOGaH4CQ.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/11.60 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Xref: news2.google.com comp.lang.ada:14633 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable Date: 2011-11-25T10:25:59+01:00 List-Id: Le Thu, 24 Nov 2011 23:48:46 +0100, Shark8 a = = =C3=A9crit: > Just like, in simple terms, we can disregard > worrying about division-by-zero errors in the following code: > > If Input_2 =3D 0 Then > -- If Input_2 is Zero here we have a BIG PROBLEM. > Return Input_1 / Input_2; -- Return the division, if it is > possible... > Else > Return Input_1'Base'Last; -- Otherwise, return the maximum value. > End If; You meant `If Input_2 /=3D 0 Then` ? -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [1] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [1] [1]: [Epigrams on Programming =E2=80=94 Alan J. =E2=80=94 P. Yale Univer= sity]