comp.lang.ada
 help / color / mirror / Atom feed
From: "G.B." <bauhaus@notmyhomepage.invalid>
Subject: Re: Ada wikibook help needed (O-O)
Date: Sun, 23 Apr 2017 18:09:47 +0200
Date: 2017-04-23T18:09:47+02:00	[thread overview]
Message-ID: <odijed$c2v$1@dont-email.me> (raw)
In-Reply-To: <odi10p$ojq$1@gioia.aioe.org>

On 23.04.17 12:52, Dmitry A. Kazakov wrote:
> On 2017-04-23 12:22, G.B. wrote:
>
>> The page goes to some length to explain static dispatching
>> vs. dynamic dispatching, but fails to introduce "dispatching"
>> first, as a term, or to reference some suitable definition.
>
> It does in the section "Polymorphism, class-wide programming and dynamic dispatching". Dispatching is a mechanism of polymorphic call implementation for the case of dynamic polymorphism.
>
>> Then,
>>
>>   "A conversion to the class-wide type makes [components] visible again."
>>
>> Is "visible" correct?
>
> Why not?

Converting to T'Class does not make any components of T'Class visible
if they are private, at the point in source of that conversion.
In this sense, it is unfortunate that "view" in "view conversion"
might trigger an association with "visibility" in the reader's mind.
Yet, what is meant is that after view conversion, the object can
be seen as of any type in T'Class, whichever type it might be. What
view conversion does not mean is that any of the object so obtained
will have its components be seen. That's a matter of visibility, really,
not types, and is decided on a different axis.


>> Is it correct to say “static call” at all,
>
> Why not?

Because:

> A statically bound call.

... sounds both better and actually different to me: no context is needed
in order to disambiguate. The qualification avoids confusion. It helps
readers when they need to learn picking the right words and it helps
programmers express their intention also for later, when the context
(mechanics of dispatching) has disappeared.

  reply	other threads:[~2017-04-23 16:09 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. [this message]
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
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