From: Nobody <nobody@nowhere.org>
Subject: Subtypes boundaries
Date: 14 Jun 2010 20:25:48 GMT
Date: 2010-06-14T20:25:48+00:00 [thread overview]
Message-ID: <87nhicFa1kU1@mid.individual.net> (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
next reply other threads:[~2010-06-14 20:25 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-14 20:25 Nobody [this message]
2010-06-14 20:36 ` Subtypes boundaries 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
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox