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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3885b7fd66a1db28 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-01-09 19:51:58 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: kcline17@hotmail.com (Kevin Cline) Newsgroups: comp.lang.ada Subject: Re: Why is Ada NOT a good choice for a beginner to programming? Date: 9 Jan 2003 19:51:58 -0800 Organization: http://groups.google.com/ Message-ID: References: <8ivo1vo5ir3piqsck4ondj0cuo47g426kf@4ax.com> <9gMS9.483613$GR5.189928@rwcrnsc51.ops.asp.att.net> NNTP-Posting-Host: 24.219.89.90 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1042170718 28733 127.0.0.1 (10 Jan 2003 03:51:58 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 10 Jan 2003 03:51:58 GMT Xref: archiver1.google.com comp.lang.ada:32854 Date: 2003-01-10T03:51:58+00:00 List-Id: Georg Bauhaus wrote in message news:... > Wes Groleau wrote: > : > : After reading that report, I don't place any value > : on what he said. I've used derived types, subtypes, > : and other abstraction-supporting features of Ada and > : I _know_ they're valuable. > > > One complaint he had was that it be possible to define a Length > using derived types and still have "*" return values of type Length, > when it should return an area. He had a point, hadn't he? > OTOH, with only structural equivalence of types, and no way to derive > both an integral length type and an integral area type, that are really > diferent, how can you build areas into your types, such that the compiler > will prevent use of values of the wrong type? > > In which languages has this been fixed? This is relatively easy to do in C++. See http://www.fnal.gov/docs/working-groups/fpcltf/html/SIunits-summary.html