comp.lang.ada
 help / color / mirror / Atom feed
From: "AG" <ang@xtra.co.nz>
Subject: Overlapping ranges
Date: Sun, 22 Jun 2003 12:40:01 +1200
Date: 2003-06-22T12:40:01+12:00	[thread overview]
Message-ID: <EU6Ja.43611$JA5.766429@news.xtra.co.nz> (raw)

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 ?





             reply	other threads:[~2003-06-22  0:40 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-22  0:40 AG [this message]
2003-06-22  1:23 ` Overlapping ranges 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
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