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,900edaa189af2033 X-Google-Attributes: gid103376,public From: jsa@alexandria (Jon S Anthony) Subject: Re: Ada95 OOP Questions Date: 1996/08/01 Message-ID: #1/1 X-Deja-AN: 171461622 sender: news@organon.com (news) references: <4tf3l4$4hu@masala.cc.uh.edu> organization: Organon Motives, Inc. newsgroups: comp.lang.ada Date: 1996-08-01T00:00:00+00:00 List-Id: In article <4toref$ksg@Masala.CC.UH.EDU> cosc19z5@Bayou.UH.EDU (Spasmo) writes: > : IN BOTH CASES YOU PASS A PARAMETER. BOTH. BOTH. BOTH. > : When you say "p.walk()" in C++, "p" is the first parameter! > > *Nod*. It was the syntax that was throwing me for a loop. > I saw things done a particular way and immediately thought > it to be "THE" way. My mistake. Most people get this wrong unless they are coming from CLOS or Dylan or some such where the Ada notation is the one used. David writes: > : IN SUMMARY: > > : 1. Both C++ and Ada pass parameters to do dispatching. > : They have to, otherwise you wouldn't know what you're working on. They have to because that is the way they are designed. They do not have per object methods like some OOLs... > : 3. Tagged type methods (aka primitive operations) inherit. Tagged type methods are a _proper_ subset of primitive operations, they are not the same thing. All primitive operations are inherited. /Jon -- Jon Anthony Organon Motives, Inc. 1 Williston Road, Suite 4 Belmont, MA 02178 617.484.3383 jsa@organon.com