comp.lang.ada
 help / color / mirror / Atom feed
From: Christos Chryssochoidis <C.Chryssochoidis@gmail.com>
Subject: Range types
Date: Sun, 21 Oct 2007 22:15:49 +0300
Date: 2007-10-21T22:15:49+03:00	[thread overview]
Message-ID: <1192994157.867598@athprx04> (raw)

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



             reply	other threads:[~2007-10-21 19:15 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-21 19:15 Christos Chryssochoidis [this message]
2007-10-21 20:23 ` Range types Niklas Holsti
2007-10-21 21:28   ` Christos Chryssochoidis
2007-10-22  0:06     ` Robert A Duff
2007-10-22  7:23     ` Jacob Sparre Andersen
2007-10-22 11:14       ` Christos Chryssochoidis
2007-10-22 12:33         ` Georg Bauhaus
2007-10-22 19:08           ` Christos Chryssochoidis
2007-10-23 23:52         ` anon
2007-10-24 12:57           ` Christos Chryssochoidis
2007-10-21 21:53 ` anon
2007-10-21 22:38   ` Christos Chryssochoidis
replies disabled

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