Re: type and subtype



"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


.