From: Ludovic Brenta <ludovic.brenta@insalien.org>
Subject: Re: type and subtype
Date: Sun, 24 Jul 2005 18:20:46 +0200
Date: 2005-07-24T18:20:46+02:00 [thread overview]
Message-ID: <87mzocrx9d.fsf@insalien.org> (raw)
In-Reply-To: 1122215078.559279.16980@f14g2000cwb.googlegroups.com
"Douglas Chong" <ohiocky@gmail.com> writes:
> I'm a newbie in Ada 95.
> Can some one tell me what is the different between type and subtype ?
> Both are look the same for me. Thanks
Two types are incompatible with one another. One can convert between
different scalar types using an explicit type conversion.
Two subtypes of the same type are compatible with one another. One
can convert between them using an implicit type conversion (i.e. no
special syntax required).
Both implicit and explicit type conversions involve run-time checks.
HTH
next prev parent reply other threads:[~2005-07-24 16:20 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-24 14:24 type and subtype Douglas Chong
2005-07-24 14:39 ` Dmitry A. Kazakov
2005-07-25 17:07 ` Martin Krischik
2005-07-24 16:20 ` Ludovic Brenta [this message]
2005-07-24 16:40 ` Jeffrey Carter
2005-07-25 8:23 ` Dmitry A. Kazakov
2005-07-25 15:41 ` Jeffrey Carter
2005-07-25 21:59 ` Ludovic Brenta
2005-07-26 8:21 ` Dmitry A. Kazakov
2005-07-25 17:02 ` Martin Krischik
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox