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 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-14 18:22:12 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!news.gtei.net!news-out.visi.com!hermes.visi.com!newsfeed1.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!59ce1190!not-for-mail Message-ID: <3D3223B6.9AF273A6@acm.org> From: Jeffrey Carter X-Mailer: Mozilla 4.7 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: if X in 1..35000 versus Boolean References: <5ee5b646.0207131410.407b39c7@posting.google.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 15 Jul 2002 01:21:54 GMT NNTP-Posting-Host: 63.184.104.204 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 1026696114 63.184.104.204 (Sun, 14 Jul 2002 18:21:54 PDT) NNTP-Posting-Date: Sun, 14 Jul 2002 18:21:54 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: archiver1.google.com comp.lang.ada:27096 Date: 2002-07-15T01:21:54+00:00 List-Id: Jan Prazak wrote: > > 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 am > still reading my first Ada tutorial). Not in any dialect of Pascal I've ever seen. You can (probably) have type Num = 1 .. 4; or type Num = (One, Two, Three, Four); (I say "probably" because I don't have a Pascal compiler available, and it's been some time since I used Pascal.) The equivalents in Ada are subtype Num is Integer range 1 .. 4; and type Num is (One, Two, Three, Four); -- Jeff Carter "Now go away or I shall taunt you a second time." Monty Python & the Holy Grail