comp.lang.ada
 help / color / mirror / Atom feed
From: jsa@alexandria (Jon S Anthony)
Subject: Re: "use" clauses and Ada 95 OOP
Date: 1996/07/19
Date: 1996-07-19T00:00:00+00:00	[thread overview]
Message-ID: <JSA.96Jul19191630@alexandria> (raw)
In-Reply-To: Dup54L.2q2.0.-s@inmet.camb.inmet.com


In article <31EF9D30.7A0@csehp3.mdc.com> "James A. Squire" <m193884@CSEHP3.MDC.COM> writes:

> Mitch Gart wrote:
>...
> > To me the C++/Java syntax
> >
> >     x.func
> >
> > seems clearer than the Ada syntax in this case because what is being
> > called is the function that is associated with X at runtime, rather than
> > the function that comes from a given package.
> 
> Indeed, that is a drawback that was mentioned in our group by someone
> who is familiar with C++.  I can't argue with it at all.

What do either of you mean by "the function that is associated with X
at runtime" here?  In the environment we are talking about here there
is no "_the_ func associated with X".  X contains a value which will
have a type indicator which will provide access to the proper jump
table entry.  Since the value of X can change (e.g., in C++ or Java up
level assignments) the func "associated" with X can change (and not
necessarily be the one defined in the class of which X was a declared
instance).  Seems pretty much like the exact same issue.

/Jon

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

617.484.3383
jsa@organon.com





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

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-07-17  0:00 "use" clauses and Ada 95 OOP Mitch Gart
1996-07-19  0:00 ` Jon S Anthony [this message]
1996-07-19  0:00 ` James A. Squire
1996-07-22  0:00   ` Stephen Schmid
1996-07-23  0:00     ` Mitch Gart
1996-07-23  0:00       ` Robert A Duff
1996-07-23  0:00       ` Robert Dewar
1996-07-25  0:00         ` JamesS1889
1996-07-26  0:00           ` Robert A Duff
1996-07-23  0:00       ` Kevin J. Weise
1996-07-23  0:00       ` Kevin J. Weise
1996-07-23  0:00         ` JamesS1889
1996-07-23  0:00     ` JamesS1889
1996-07-23  0:00     ` Laurent Guerby
1996-07-23  0:00       ` Robert A Duff
1996-07-23  0:00     ` JamesS1889
1996-07-24  0:00     ` Jon S Anthony
1996-07-24  0:00     ` Jon S Anthony
1996-07-19  0:00 ` Robert I. Eachus
1996-07-23  0:00   ` Robert I. Eachus
1996-07-25  0:00     ` JamesS1889
1996-07-23  0:00   ` JamesS1889
1996-07-23  0:00     ` Robert Dewar
1996-07-24  0:00     ` Robert I. Eachus
1996-07-24  0:00   ` Jon S Anthony
1996-07-20  0:00 ` James A. Squire
1996-07-21  0:00   ` Robert A Duff
1996-07-22  0:00 ` Jon S Anthony
1996-07-23  0:00 ` Jon S Anthony
replies disabled

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