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=2.2 required=5.0 tests=BAYES_00,FROM_WORDY, 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:28:01 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed2.news.rcn.net!feed1.news.rcn.net!rcn!not-for-mail From: "Frank J. Lhota" Newsgroups: comp.lang.ada Subject: Re: if X in 1..35000 versus Boolean Date: Sat, 13 Jul 2002 12:27:03 -0400 Message-ID: References: Reply-To: "Frank J. Lhota" X-Trace: UmFuZG9tSVa6sXEC3uwi71ydogdj4+zQ1QJ+ch4+eyN2jzGcsMBUIuyMt1eFX/8r X-Complaints-To: abuse@rcn.com NNTP-Posting-Date: 13 Jul 2002 16:27:13 GMT X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Priority: 3 X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MSMail-Priority: Normal Xref: archiver1.google.com comp.lang.ada:27050 Date: 2002-07-13T16:27:13+00:00 List-Id: > 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??? Yes, every compiler I know of will evaluate X in 1 .. 35000 as X >= 1 and then x <= 35000 Also, 1 .. 35000 is an integer range, not an enumeration type.