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.6 required=5.0 tests=BAYES_20,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,74a0352df2d2082a X-Google-Attributes: gid103376,public From: cosc19z5@Bayou.UH.EDU (Spasmo) Subject: Re: strongly typed langauge Date: 1996/09/21 Message-ID: <52034c$fd0@Masala.CC.UH.EDU>#1/1 X-Deja-AN: 184350791 organization: University of Houston newsgroups: comp.lang.ada Date: 1996-09-21T00:00:00+00:00 List-Id: AGBOH CHARLES (cagboh@vub.ac.be) wrote: : Hi : Could Some explain to me what the term "strongly typed language" is in the : context of ada. Could you give some examples and tips as on how to : avoid errors related to this particular domain. Well strongly typed language in general means that strict type checking is in place. For instance try to mix and match various numeric types in Ada and you'll quickly know what this means. C will let you do stuff like mix floats and integers, but Ada won't, at least not without explicit conversion. Also you can create new types which will be incompatible with old types, even if they are "the same". For instance compare the following with C (notorious for being such a weakly typed language): Ada: type MY_INTEGER is new INTEGER; C: typedef int MY_INTEGER; Now Ada will prevent you from mixing types of MY_INTEGER with types of INTEGER, while C will happily let you mix MY_INTEGER with int. What this means for you as a developer is that you get an extra layer of protection, and what IMO maps to an ability to better reinforce your data types and map your program to the problem domain you are wishing to solve. Of course if you are in the habit of mixing types, you will get numerous errors, but these are easy to correct, and IMO will save you grief in the long run. Better a compile error now than a runtime error a week later. : thanks -- Spasmo "John Wayne was a Nazi, he liked to play SS He had a picture of Adolph the Boy tucked in his cowboy vest" "John Wayne was a Nazi" by MDC