comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Ada wikibook help needed (O-O)
Date: Mon, 24 Apr 2017 17:03:18 -0500
Date: 2017-04-24T17:03:18-05:00	[thread overview]
Message-ID: <odlsn7$vd6$1@franka.jacob-sparre.dk> (raw)
In-Reply-To: odhv2v$9vi$1@dont-email.me

"G.B." <bauhaus@notmyhomepage.invalid> wrote in message 
news:odhv2v$9vi$1@dont-email.me...
...
>   "A conversion to the class-wide type makes [components] visible again."
>
> Is "visible" correct?

I believe so (without actually reading the entire section). The components 
always exist, after all, but you can't reference them. Visibility is the way 
that's described in Ada, at least for the most part.

> Is it correct to say "static call" at all, other than when waving hands,
> (not helpfully IMHO) in
>
>   "within Op1, the first call to Op2 is therefore also a static call "

No. A "static call" is defined in 4.9. The author meant "statically tagged 
call" as described in 3.9.2 (3-6/2, 14-19), or even more formally, a "call 
with a statically determined controlling tag value". Usually, that's 
informally described as a "statically bound call".

>    "In other OO languages, a method is either dispatching or not.
>     In Ada, a routine is either _available_ for dispatching or not. "

I think this is fine; an operation is either a dispatching operation or it 
isn't. (See 3.9.2(1/2)). If it isn't, then it never dispatches; otherwise, 
whether it dispatches depends on whether the call is statically or 
dynamically bound.

                             Randy.


  parent reply	other threads:[~2017-04-24 22:03 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-23 10:22 Ada wikibook help needed (O-O) G.B.
2017-04-23 10:52 ` Dmitry A. Kazakov
2017-04-23 16:09   ` G.B.
2017-04-23 17:03     ` Dmitry A. Kazakov
2017-04-24  5:13       ` G.B.
2017-04-24  7:55         ` Dmitry A. Kazakov
2017-04-24 12:34     ` Jacob Sparre Andersen
2017-04-24 22:06   ` Randy Brukardt
2017-04-24 22:03 ` Randy Brukardt [this message]
2017-06-30 13:54 ` Norman Worth
2017-06-30 15:34   ` AdaMagica
replies disabled

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