From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_05,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e7634e087d521aa2 X-Google-Attributes: gid103376,public From: "Matthew Heaney" Subject: Re: Newbie question about types Date: 1999/11/22 Message-ID: <38396260_3@news1.prserv.net>#1/1 X-Deja-AN: 551657422 Content-transfer-encoding: 7bit References: <81bn5j$sv8$1@nntp9.atl.mindspring.net> Content-Type: text/plain; charset="US-ASCII" X-Complaints-To: abuse@prserv.net X-Trace: 22 Nov 1999 15:33:52 GMT, 129.37.213.110 Organization: Global Network Services - Remote Access Mail & News Services Mime-version: 1.0 Newsgroups: comp.lang.ada Date: 1999-11-22T00:00:00+00:00 List-Id: In article <81bn5j$sv8$1@nntp9.atl.mindspring.net> , "David Powell" 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