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: Matthew Heaney Subject: Re: A question for my personal knowledge. Date: 1999/05/15 Message-ID: #1/1 X-Deja-AN: 478150721 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> <7hfp1n$28tr@drn.newsguy.com> <7hhuqp$2jd9@drn.newsguy.com> NNTP-Posting-Date: Sat, 15 May 1999 05:40:08 PDT Newsgroups: comp.lang.ada Date: 1999-05-15T00:00:00+00:00 List-Id: Florian Weimer writes: > > Yes, that is even better. Now In Ada, how does one send a message to a > > tagged record?? > > `Message(Tagged_Record_Variable);'? > > I'm not sure whether Ada is a bit nearer to the message-based model > than C++ or Java because I haven't understood all the implications of > the Ada approach yet. One implication of the Ada approach is that binary operations are more natural: Marry (John, Jane); The operation "marriage" applies to each object equally. > C++ and Java lack truely dynamic message dispatching (i.e. you can > only send a message to an object if its class (or some suitable base > class) is known at compile-time), and judging from my preliminary > understanding, Ada doesn't have this capability, either. Of course, > you can implement dynamic dispatching in almost any (even non-OO) > languages used today, but without syntactic support of some kind, your > code won't be easy to write or read. Your choice of nomenclature is unfortunate, because everyone else uses the term "dynamic message dispatching" to refer to run-time binding, which Ada95, C++, and Java _do_ have.