From: bscrawford@aol.com (BSCrawford)
Subject: Re: Newbie question about types
Date: 1999/11/22
Date: 1999-11-22T00:00:00+00:00 [thread overview]
Message-ID: <19991122113055.05834.00000083@ngol08.aol.com> (raw)
In-Reply-To: 81bn5j$sv8$1@nntp9.atl.mindspring.net
David,
An enumeration type declaration specifies a list of distinct
items, enclosed in parentheses. The items are identifiers or
character literals. In either case the legal values of the
type are referred to as "enumeration literals." Each of these
values has a "position number" corresponding to its position
in the list Enumeration types have attributes T'First, T'Last,
T'Range, T'Pred, T'Succ, T'Min, T'Max, T'Image, T'Wide_Image,
T'Value, T'Wide_Value, T'Pos, and T'Val
Numeric types specify sets of numerical values and include
integer types, floating-point types, and fixed-point types.
Generally speaking, numeric types have the same attributes as
enumeration types. However, floating-point and fixed-point
types do not have the T'Pos and T'Val attributes. Some numeric
types have additional attributes. For example, fixed-point types
have the attributes T'Delta, and T'Small.
(Congratulations on the proper spelling of Ada, and good
luck with our favorite language. :-)
Bard Crawford
Stage Harbor Software
next prev parent reply other threads:[~1999-11-22 0:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-11-22 0:00 Newbie question about types David Powell
1999-11-22 0:00 ` BSCrawford [this message]
1999-11-22 0:00 ` Larry Kilgallen
1999-11-22 0:00 ` Matthew Heaney
1999-11-23 0:00 ` Riyaz Mansoor
1999-11-22 0:00 ` Preben Randhol
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox