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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,71c41b6f4d72158c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-07-13 12:44:05 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!151.189.0.75!newsfeed.arcor-online.net!news.belwue.de!news.uni-stuttgart.de!news.enyo.de!not-for-mail From: Florian Weimer Newsgroups: comp.lang.ada Subject: Re: if X in 1..35000 versus Boolean Date: Sat, 13 Jul 2002 21:44:07 +0200 Organization: Enyo -- not your organization Message-ID: <87r8i7s9a0.fsf@deneb.enyo.de> References: NNTP-Posting-Host: deneb.enyo.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: cygnus.enyo.de 1026589436 30460 212.9.189.171 (13 Jul 2002 19:43:56 GMT) X-Complaints-To: abuse@enyo.de NNTP-Posting-Date: 13 Jul 2002 19:43:56 GMT Cancel-Lock: sha1:afvne5bDsfNo183jhhFYwPpbcZw= Xref: archiver1.google.com comp.lang.ada:27062 Date: 2002-07-13T19:43:56+00:00 List-Id: Jan Prazak writes: > does the compiler (I am using GNAT) "see", that > > if X in 1..35000 then > > is the same as > > if (X >= 1) and (X <= 35000) then > > ??? Yes, if X is a variable. If X is a function, it can make a difference if the function is called once or twice.