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.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,ef0074ec236ba6e3 X-Google-Attributes: gid109fba,public X-Google-Thread: 108717,ef0074ec236ba6e3 X-Google-Attributes: gid108717,public X-Google-Thread: 1014db,ef0074ec236ba6e3 X-Google-Attributes: gid1014db,public X-Google-Thread: 103376,b19fa62fdce575f9 X-Google-Attributes: gid103376,public X-Google-Thread: 1108a1,ef0074ec236ba6e3 X-Google-Attributes: gid1108a1,public X-Google-ArrivalTime: 1994-12-05 07:22:08 PST Path: bga.com!news.sprintlink.net!pipex!warwick!not-for-mail From: csusb@csv.warwick.ac.uk (Jules) Newsgroups: comp.lang.ada,comp.lang.c,comp.programming,comp.lang.c++,comp.object Subject: Re: Why don't large companies use Ada? Date: 5 Dec 1994 15:08:47 -0000 Organization: University of Warwick, Coventry, UK Message-ID: <3bvadv$66p@holly.csv.warwick.ac.uk> References: <3aa7jo$7j@Starbase.NeoSoft.COM> <3bjf2q$i69@goanna.cs.rmit.oz.au> Xref: bga.com comp.lang.ada:8278 comp.lang.c:33392 comp.programming:5617 comp.lang.c++:39617 comp.object:9432 Date: 1994-12-05T15:08:47+00:00 List-Id: In article , bobduff@dsd.camb.inmet.com (Bob Duff) writes: >In article <3bjf2q$i69@goanna.cs.rmit.oz.au>, >Michael Coburn wrote: >>house@helios.usq.EDU.AU (ron house) writes: >> >>>How about "Ada - use it when you want to multiply a length by a length >>>and get a length, or when you want to be prevented from dividing an area >>>by a length because they have different types." >> >>total_area := area(length_one) * area(length_two); >> >>yawn.... > >The fact remains that Ada's type model disallows a sensible operation >(Total_Area := Length_One * Length_Two), and allows nonsense >(Some_Length := Length_One * Length_Two). Only if you want to go completely over the top and define new types for lengths and areas. I mean, if you did the same in C++ you would get the same results. So why criticise Ada, for something which almost all commonly used languages today have a problem with, if you use them in this (unusual) manner? -- /* Julian R Hall csusb@csv.warwick.ac.uk Flames should be redirected to /dev/null - I don't know what I'm saying myself so don't expect it to make sense all the time! */