comp.lang.ada
 help / color / mirror / Atom feed
From: "Matthew Heaney" <matthew_heaney@acm.org>
Subject: Re: Newbie question about types
Date: 1999/11/22
Date: 1999-11-22T00:00:00+00:00	[thread overview]
Message-ID: <38396260_3@news1.prserv.net> (raw)
In-Reply-To: 81bn5j$sv8$1@nntp9.atl.mindspring.net

In article <81bn5j$sv8$1@nntp9.atl.mindspring.net> , "David Powell" 
<powellboys@mindpring.com> wrote:

> I am a new Ada (notice the spelling.  you guys seem to be pretty touchy
> about it) and am working through a book.  The author makes many references
> to enumeration types and numeric types without distinguishing the two.  Any
> help on what an enumeration type is as apposed to a numeric type would be
> appreciated.

type Enumeration_Type is (A, B, C);

type Integer_Type is range 1 .. 10;

type Modular_Type is mod 256;

type Float_Type is digits 6 range -pi .. pi;

type Fixed_Type is delta 0.01 range 0.0 .. 1.00;


ie

  type Gender_Type is (Male, Female);

  type Height_In_Feet_Type is range 0.0 .. 20.0;




--
The theory of evolution is quite rightly called the greatest unifying
theory in biology.  The diversity of organisms, similarities and
differences between kinds of organisms, patterns of distribution and
behavior, adaptation and interaction, all this was merely a bewildering
chaos of facts until given meaning by the evolutionary theory.

Populations, Species, and Evolution
Ernst Mayr




  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 ` Matthew Heaney [this message]
1999-11-23  0:00   ` Riyaz Mansoor
1999-11-22  0:00 ` Preben Randhol
1999-11-22  0:00 ` Larry Kilgallen
1999-11-22  0:00 ` BSCrawford
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox