comp.lang.ada
 help / color / mirror / Atom feed
From: bobduff@world.std.com (Robert A Duff)
Subject: Re: Dispatching in Ada95
Date: 1996/04/19
Date: 1996-04-19T00:00:00+00:00	[thread overview]
Message-ID: <Dq41qH.Cs2@world.std.com> (raw)
In-Reply-To: 3176FEBF.5D3@csehp3.mdc.com

In article <3176FEBF.5D3@csehp3.mdc.com>,
James A. Squire <m193884@CSEHP3.MDC.COM> 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




  reply	other threads:[~1996-04-19  0:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <md5:85373D6BBD0F0A69C09034C3F08892BC>
1996-04-18  0:00 ` Dispatching in Ada95 James A. Squire
1996-04-19  0:00   ` Robert A Duff [this message]
1996-04-19  0:00 ` Samuel Tardieu
     [not found] <md5:5BDD03FA023B9E2881F3A55BFDD6938A>
1996-04-23  0:00 ` James A. Squire
     [not found] <md5:331AE542B80F60CE2470F379EDBF578B>
1996-04-22  0:00 ` James A. Squire
1996-04-23  0:00   ` Tucker Taft
1996-04-24  0:00   ` Robert Dewar
1996-04-24  0:00 ` Jon S Anthony
     [not found] <md5:F8080176D9F8A3EEEF6212652DAEEEE5>
1996-04-29  0:00 ` James A. Squire
1996-04-29  0:00   ` Robert Dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox