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,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bdd718faa7c79f29,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-21 17:39:01 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!enews.sgi.com!news.xtra.co.nz!53ab2750!not-for-mail From: "AG" Newsgroups: comp.lang.ada Subject: Overlapping ranges X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: Date: Sun, 22 Jun 2003 12:40:01 +1200 NNTP-Posting-Host: 219.88.62.51 X-Complaints-To: newsadmin@xtra.co.nz X-Trace: news.xtra.co.nz 1056242340 219.88.62.51 (Sun, 22 Jun 2003 12:39:00 NZST) NNTP-Posting-Date: Sun, 22 Jun 2003 12:39:00 NZST Organization: Xtra Xref: archiver1.google.com comp.lang.ada:39546 Date: 2003-06-22T12:40:01+12:00 List-Id: Assuming I have a package declaration like this: package range is type x1 is range 0..255; type x2 is range 127..2**15-1; end ranges; Is there a way to declare a function using that package that will accept values of either x1 or x2 (and nothing else) restricted to the range 127..255 ?