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, MSGID_SHORT autolearn=no autolearn_force=no version=3.4.4 Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!cbosgd!ihnp4!ptsfa!ames!hc!beta!cmcl2!rutgers!bellcore!faline!ulysses!sfmag!sfsup!mpl From: mpl@sfsup.UUCP Newsgroups: comp.lang.ada,comp.lang.c Subject: Re: "C" vrs ADA Message-ID: <1963@sfsup.UUCP> Date: Mon, 31-Aug-87 13:53:33 EDT Article-I.D.: sfsup.1963 Posted: Mon Aug 31 13:53:33 1987 Date-Received: Wed, 2-Sep-87 02:26:06 EDT References: <1065@vu-vlsi.UUCP> <2231@cbmvax.UUCP> <36@sarin.UUCP> <1678@rti.UUCP> Distribution: na Organization: AT&T-IS, Summit N.J. USA Xref: utgpu comp.lang.ada:607 comp.lang.c:3908 Summary: yes, but I could write that in C List-Id: In article <1678@rti.UUCP>, jb@rti.UUCP writes: ] > [I wrote this - M. P. Lindner] ] > [ the following are excerpts - see the original articles for context ] ] > ] > ...... I do take exception, however to the statements that ] > Ada is an "object oriented" language. Yes, it is, but it was implemented ] > no better than that of C++. Example: Try to make a generic merge sort ] > which can sort floats and integers. ] ] What about ...... ] ] generic ] type ITEM is private; ] with function GREATER(A,B : ITEM) return BOOLEAN is <>; ] package SORTING is ] ] type VECTOR is array(NATURAL range <>) of ITEM; ] ] procedure MERGE_SORT( A, B : VECTOR; RESULTS : out VECTOR ); ] ] end SORTING; ] ] This generic package can be instatiated for fixed, floating and record types. ] Jeff Bartlett But if I have to make a GREATER function I could have done it in C (see man page for qsort(3)! Therefore I maintain my claim that Ada is *not* a proper implementation of an object oriented language (like Smalltalk). Mike Lindner attunix!mpl