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 11:04:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!195.25.12.36!oleane.net!oleane!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 13:02:53 -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 1026583442 60748 137.194.161.2 (13 Jul 2002 18:04:02 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Sat, 13 Jul 2002 18:04: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 X-Original-Cc: janp9@gmx.net Xref: archiver1.google.com comp.lang.ada:27056 Date: 2002-07-13T13:02:53-05:00 ----- Original Message ----- From: "Jan Prazak" Newsgroups: comp.lang.ada To: Sent: July 13, 2002 3:36 PM Subject: Re: if X in 1..35000 versus Boolean > On Sat, 13 Jul 2002 15:32:19 -0100, David C. Hoos, Sr. wrote: > > > Jan, > > > > Some questions for you: > > 1. What does any of the code you supplied have to do > > with any enumeration type? > > See my second posting (reply). Note: Section 4.5.2 (2) of the Ada Reference Manual says: A membership test, using in or not in, determines whether or not a value belongs to a given subtype or range, or has a tag that identifies a type that is covered by a given type. Membership tests are allowed for all types. The expression 1 .. 3500 declares an integer range, _not_ an enumeration. > > > > > 2. Why don't you compile your file to generate assembly > > language output, and see for yourself what the compiler does? > > > > I know only basics of Assembler, so this would be pointless in my case. The point would be that you might learn more about Assembler, Ada, and programming in general, if you did as I suggest. > > _______________________________________________ > comp.lang.ada mailing list > comp.lang.ada@ada.eu.org > http://ada.eu.org/mailman/listinfo/comp.lang.ada > >