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,bdd718faa7c79f29 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-24 01:08:42 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.mel.connect.com.au!news.xtra.co.nz!53ab2750!not-for-mail From: "AG" Newsgroups: comp.lang.ada References: <3EF5EDA1.1010702@attbi.com> Subject: Re: 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: Tue, 24 Jun 2003 20:09:42 +1200 NNTP-Posting-Host: 219.88.60.93 X-Complaints-To: newsadmin@xtra.co.nz X-Trace: news.xtra.co.nz 1056442121 219.88.60.93 (Tue, 24 Jun 2003 20:08:41 NZST) NNTP-Posting-Date: Tue, 24 Jun 2003 20:08:41 NZST Organization: Xtra Xref: archiver1.google.com comp.lang.ada:39641 Date: 2003-06-24T20:09:42+12:00 List-Id: "David C. Hoos" wrote in message news:PGAJa.19179$bH3.5754@fe02.atl2.webusenet.com... > Neither example will compile because the declaration > subtype x1_and_x2_range is range x1(x2'first)..x1'last; > is illegal; Sorry, just a typing error on my part. The line should have read: subtype x1_and_x2_range is x1 range x1(x2'first)..x1'last; A cut and past from AdaGide follows (which compiles fine): package overlap is type x1 is range 0..255; type x2 is range 127.. 2**15-1; subtype x1_and_x2_range is x1 range x1(x2'first)..x1'last; function f(x: x1) return boolean; end; Sorry for the typo omission. Doesn't change the rest of it though.