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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b0d569080889afd6 X-Google-Attributes: gid103376,public From: Mike Subject: Re: A question for my personal knowledge. Date: 1999/05/13 Message-ID: <7hfp1n$28tr@drn.newsguy.com>#1/1 X-Deja-AN: 477627263 References: <1VEZ2.1515$I51.88140@carnaval.risq.qc.ca> <37372A84.641F2133@bigfoot.com> <7h8oe8$2js$1@cf01.edf.fr> <37382B0C.A95B6745@bigfoot.com> <7h9o21$9v4$1@nnrp1.deja.com> <7h9pei$aut$1@nnrp1.deja.com> <373AC668.4824FF07@decada.enet.dec.com> <7hfctj$1kb4@drn.newsguy.com> Organization: Newsguy News Service [http://www.newsguy.com] Newsgroups: comp.lang.ada Date: 1999-05-13T00:00:00+00:00 List-Id: In article , dale@cs.rmit.edu.au says... > >Mike wrote: > >"Ada OO mechanism is not simple" > >Well _I_ find Ada's mechanism quite simple, so we'll have to put >this down to perception. > >Quite simply (from my point of view) you declare a tagged type (class), >then you declare the subprograms (methods). Class wide pointers are the >equivalent of C++'s pointers, and you dispatch through them. > >What else is there to know (that is equivalent to C++*)? > In Ada, you still use function calls and pass tagged records as parameters. in real OO, you invoke methods on objects. Also, a class is more clear representation of an object. in Ada, bolting OO concepts into a procedural language, makes the way to do OO in Ada not very natural at all. The biggest mistak Ada made in 95 was not introduce the class construct as is common in other OO languages. who care if that would have broke Ada83 programs, you could have called it X95 for all I care, it did not have to be called Ada. sorry, but OO in Ada is not normal OO. I am happy that you have no problem with it, but 99% of the rest of the world do not do OO that way Ada does it. Mike