comp.lang.ada
 help / color / mirror / Atom feed
From: "AG" <ang@xtra.co.nz>
Subject: Re: Overlapping ranges
Date: Tue, 24 Jun 2003 20:09:42 +1200
Date: 2003-06-24T20:09:42+12:00	[thread overview]
Message-ID: <dGTJa.47662$JA5.833535@news.xtra.co.nz> (raw)
In-Reply-To: PGAJa.19179$bH3.5754@fe02.atl2.webusenet.com

"David C. Hoos" <david.c.hoos.sr@ada95.com> 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.





  reply	other threads:[~2003-06-24  8:09 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-22  0:40 Overlapping ranges AG
2003-06-22  1:23 ` Mark A. Biggar
2003-06-22  2:58   ` AG
2003-06-22  3:17     ` tmoran
2003-06-22 17:55   ` Robert I. Eachus
2003-06-23  9:05     ` AG
2003-06-23 10:46       ` David C. Hoos
2003-06-24  8:09         ` AG [this message]
2003-06-29  0:36 ` Richard Riehle
2003-06-29  6:24   ` AG
2003-06-29  6:42     ` AG
2003-06-29 18:40       ` Richard Riehle
2003-06-29 18:49     ` Richard Riehle
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox