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-14 13:47:03 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: Sun, 14 Jul 2002 16:47:05 -0400 Message-ID: References: <5ee5b646.0207131410.407b39c7@posting.google.com> Reply-To: "Frank J. Lhota" X-Trace: UmFuZG9tSVZxjkmDf5STU7JN1loJL4G1KV07vU//t28EEaHyKUb1P3KAMMape1Ki X-Complaints-To: abuse@rcn.com NNTP-Posting-Date: 14 Jul 2002 20:46:55 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:27090 Date: 2002-07-14T20:46:55+00:00 List-Id: "Jan Prazak" wrote in message news:pan.2002.07.14.14.12.54.200318.1481@gmx.net... > On Sat, 13 Jul 2002 21:10:40 -0100, Robert Dewar wrote: > > > Jan Prazak wrote in message > > news:... > > > >> type num : (1, 2, 3, 4); > > I have no idea what this is supposed to be, but it is not even a > > reasonable approximation of an Ada type declaration. > > Maybe it's not the right syntax in Ada, because I haven't tested it, but > this would work in Pascal and it should be quite similar in Ada I do not know of ANY language where an enummeration type is defined this way. The issue is not so much syntax as it is that 1, 2, 3 etc. are not enumeration literals. Have you actually tried this in Pascal?