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.1 required=5.0 tests=AXB_XMAILER_MIMEOLE_OL_024C2, BAYES_00,MAILING_LIST_MULTI,REPLYTO_WITHOUT_TO_CC autolearn=no 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 09:33:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!skynet.be!skynet.be!freenix!enst!enst.fr!not-for-mail From: "David C. Hoos, Sr." Newsgroups: comp.lang.ada Subject: Re: if X in 1..35000 versus Boolean Date: Sat, 13 Jul 2002 11:32:19 -0500 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: References: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1026577982 60584 137.194.161.2 (13 Jul 2002 16:33:02 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Sat, 13 Jul 2002 16:33:02 +0000 (UTC) Return-Path: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:27051 Date: 2002-07-13T11:32:19-05:00 Jan, Some questions for you: 1. What does any of the code you supplied have to do with any enumeration type? 2. Why don't you compile your file to generate assembly language output, and see for yourself what the compiler does? ----- Original Message ----- From: "Jan Prazak" Newsgroups: comp.lang.ada To: Sent: July 13, 2002 2:10 PM Subject: if X in 1..35000 versus Boolean > Hello, > > I have a simple question: > > 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 > > ??? > > Or does the compiler really create an enumeration type with 35000 entries > with values from 1 to 35000, just to check if X is in there??? > > Jan > > _______________________________________________ > comp.lang.ada mailing list > comp.lang.ada@ada.eu.org > http://ada.eu.org/mailman/listinfo/comp.lang.ada > >