comp.lang.ada
 help / color / mirror / Atom feed
* Subtypes boundaries
@ 2010-06-14 20:25 Nobody
  2010-06-14 20:36 ` Jeffrey R. Carter
  2010-06-14 20:43 ` Nobody
  0 siblings, 2 replies; 13+ messages in thread
From: Nobody @ 2010-06-14 20:25 UTC (permalink / raw)


Hi All,

I am new to Ada and found the following declaration in my text book:

type ASTERIX is range -5_000..+10_000;
subtype IDEFIX is range 1..20_000;

How can it be that the subtype IDEFIX can exceed the boundaries (20_000 
compared to 10_000) of the superordinated type ASTERIX? If it is a 
subtype its boundaries should be within the boundaries of the type it is 
derived from. Did I get something wrong?

Regards

Nobody






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

end of thread, other threads:[~2010-06-17 19:53 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-14 20:25 Subtypes boundaries Nobody
2010-06-14 20:36 ` Jeffrey R. Carter
2010-06-17 18:54   ` Nobody
2010-06-17 18:58     ` Nasser M. Abbasi
2010-06-17 19:17     ` Jeffrey R. Carter
2010-06-17 19:53     ` Ludovic Brenta
2010-06-14 20:43 ` Nobody
2010-06-14 21:01   ` Gautier write-only
2010-06-14 23:31     ` Yannick Duchêne (Hibou57)
2010-06-15  0:01       ` Peter C. Chapin
2010-06-15  0:58         ` Adam Beneschan
2010-06-15  1:05       ` Nobody
2010-06-15  1:20         ` Adam Beneschan

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