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,4d8b56262a702d36 X-Google-Attributes: gid103376,public From: bobduff@world.std.com (Robert A Duff) Subject: Re: Dispatching in Ada95 Date: 1996/04/19 Message-ID: #1/1 X-Deja-AN: 148373290 references: <3176FEBF.5D3@csehp3.mdc.com> organization: The World Public Access UNIX, Brookline, MA newsgroups: comp.lang.ada Date: 1996-04-19T00:00:00+00:00 List-Id: In article <3176FEBF.5D3@csehp3.mdc.com>, James A. Squire wrote: >I'm told that in object oriented programming like C++, one of the nice >... For the most part, the Ada and C++ dispatching features are pretty much the same. They use a different syntax to indicate which object you're dispatching on. >Unless I am totally dense, in order for dispatching to work in this >example as printed on page II-8, there is one vital element (which of >course is left out of the example on II-8): "use New_Alert_System; use >Emergency_Alert_System;" No. Dispatching is a run-time action that has nothing to do with visibility. You can dispatch to a subprogram this is not visible to you at compile time. In fact, that's the whole point: you want to avoid depending on what you're calling. - Bob