comp.lang.ada
 help / color / mirror / Atom feed
* Range types
@ 2007-10-21 19:15 Christos Chryssochoidis
  2007-10-21 20:23 ` Niklas Holsti
  2007-10-21 21:53 ` anon
  0 siblings, 2 replies; 12+ messages in thread
From: Christos Chryssochoidis @ 2007-10-21 19:15 UTC (permalink / 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



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2007-10-24 12:57 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-21 19:15 Range types Christos Chryssochoidis
2007-10-21 20:23 ` 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

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