comp.lang.ada
 help / color / mirror / Atom feed
From: jsa@organon.com (Jon S Anthony)
Subject: Re: Dispatching in Ada95
Date: 1996/04/24
Date: 1996-04-24T00:00:00+00:00	[thread overview]
Message-ID: <JSA.96Apr23210102@organon.com> (raw)
In-Reply-To: md5:331AE542B80F60CE2470F379EDBF578B

In article <317BCF1F.6542@csehp3.mdc.com> "James A. Squire" <m193884@CSEHP3.MDC.COM> writes:

> > You're right in saying that it will check a subprogram which is
> > directly visible (if you don't give a prefix). But if your parameter
> > is of a class-wide type, only a subprogram with the base type of this
> > class-wide type needs to be visible.
> 
> Correction:  Directly visible.

Correction, not directly visible.  And dispatching has nothing to do
with visibility anyway.  Why do you think so??????


> > Now, our main procedure T. T withes AAA, BBB and Text_IO, and uses all
> > of them except BBB.
> 
> So, you do compromise and use the use clause, then.  That was my whole
> question.  The use clause *is* essential to dispatching.

No.  Not only is the use clause _NOT_ essential, it has nothing to do
with it.  Dispatching is a runtime thing based on the dynamic type
(tag) of the operands of the particular invocation.  You're just plain
confused (for some reason...)


> Thank you for answering my question.  Just another "gotcha" of Ada95 to
> note for future reference.

Unfortunately, you still don't get it.  There is no "gotcha" here.

/Jon
-- 
Jon Anthony
Organon Motives, Inc.
1 Williston Road, Suite 4
Belmont, MA 02178

617.484.3383
jsa@organon.com





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

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

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