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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,da3af210412d89fd,start X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder3.cambrium.nl!feed.tweaknews.nl!83.80.28.12.MISMATCH!multikabel.net!newsfeed10.multikabel.net!tudelft.nl!txtfeed1.tudelft.nl!newsfeed.CARNet.hr!news.grnet.gr!newsfd02.forthnet.gr!not-for-mail From: Christos Chryssochoidis Newsgroups: comp.lang.ada Subject: Range types Date: Sun, 21 Oct 2007 22:15:49 +0300 Organization: FORTHnet S.A., Atthidon 4, GR-17671 Kalithea, Greece, Tel: +30 2109559000, Fax: +30 2109559333, url: http://www.forthnet.gr Message-ID: <1192994157.867598@athprx04> NNTP-Posting-Host: athprx04.forthnet.gr Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: athprx02.forthnet.gr 1192994158 9589 193.92.150.70 (21 Oct 2007 19:15:58 GMT) X-Complaints-To: abuse@forthnet.gr NNTP-Posting-Date: Sun, 21 Oct 2007 19:15:58 +0000 (UTC) User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070728) Cache-Post-Path: newsfd02!unknown@acro.ath.forthnet.gr Xref: g2news2.google.com comp.lang.ada:2527 Date: 2007-10-21T22:15:49+03:00 List-Id: Hi, I have a question regarding the range types in Ada. Is there any way to specify that a type is, say, the values 1..100 and additionally the values 150..200? I tried something like > type My_Int is range 1..100, 150..200; and > type My_Int is range 1..100 | 150..200; but without success. I also tried doing this within an enumeration, but failed again. Is it possible to define such type, consisting of multiple ranges? Thanks very much for any answer. Christos Chryssochoidis