Re: type and subtype
- From: Ludovic Brenta <ludovic.brenta@xxxxxxxxxxxx>
- Date: Sun, 24 Jul 2005 18:20:46 +0200
"Douglas Chong" <ohiocky@xxxxxxxxx> 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
.
- Follow-Ups:
- Re: type and subtype
- From: Jeffrey Carter
- Re: type and subtype
- References:
- type and subtype
- From: Douglas Chong
- type and subtype
- Prev by Date: Re: type and subtype
- Next by Date: Re: type and subtype
- Previous by thread: Re: type and subtype
- Next by thread: Re: type and subtype
- Index(es):