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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,71c41b6f4d72158c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-07-13 10:35:37 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!t-online.de!newsfeed.r-kom.de!newsfeed.freenet.de!news.freenet.de!not-for-mail From: Jan Prazak Subject: Re: if X in 1..35000 versus Boolean Date: Sat, 13 Jul 2002 19:36:43 -0100 Newsgroups: comp.lang.ada Message-ID: References: User-Agent: Pan/0.11.2 (Unix) Mime-Version: 1.0 Content-Type: text/plain; charset=iso885915 Content-Transfer-Encoding: 8bit X-Comment-To: "Frank J. Lhota" NNTP-Posting-Host: 213.7.193.7 X-Trace: 1026581735 news.freenet.de 23706 213.7.193.7 X-Complaints-To: abuse@freenet.de Xref: archiver1.google.com comp.lang.ada:27054 Date: 2002-07-13T19:36:43-01:00 List-Id: On Sat, 13 Jul 2002 15:27:03 -0100, Frank J. Lhota wrote: > Also, 1 .. 35000 is an integer range, not an enumeration type. But the word "in" tests, if given object (variable...) is in given enumeration type. type num : (1, 2, 3, 4); if 3 in num then ... -- this should be the same as: if 3 in (1,2,3,4); -- and also the same as: if 3 in 1..4; So I assume that "if X in 1..35000" has the same rules.