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-16 03:54:05 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!194.25.134.62!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news.freenet.de!not-for-mail From: Jan Prazak Subject: Re: if X in 1..35000 versus Boolean Date: Tue, 16 Jul 2002 12:54:39 -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: "Keith Thompson" NNTP-Posting-Host: 213.7.192.88 X-Trace: 1026816798 news.freenet.de 15203 213.7.192.88 X-Complaints-To: abuse@freenet.de Xref: archiver1.google.com comp.lang.ada:27141 Date: 2002-07-16T12:54:39-01:00 List-Id: On Tue, 16 Jul 2002 07:18:54 -0100, Keith Thompson wrote: > I think you're thinking of Pascal sets, not enumeration types. Ada > doesn't have built-in set types, though they're easy enough to > implement. > > If I recall correctly (it's been a while), in Pascal you can write > something like: > > if X in [1 .. 4] then (* This is Pascal, not Ada *) begin > ...; > end; > Yes! That's exactly what I meant, but I gave it only another name. Then I haven't misunderstood something, it just doesn't exist in Ada. Jan