comp.lang.ada
 help / color / mirror / Atom feed
From: "G.B." <bauhaus@notmyhomepage.invalid>
Subject: Re: Ada wikibook help needed (O-O)
Date: Mon, 24 Apr 2017 07:13:39 +0200
Date: 2017-04-24T07:13:39+02:00	[thread overview]
Message-ID: <odk1c5$brc$1@dont-email.me> (raw)
In-Reply-To: <odimpe$1sh6$1@gioia.aioe.org>

On 23.04.17 19:03, Dmitry A. Kazakov wrote:

> Then,
>
>   "A conversion to the class-wide type makes [components] visible
> again."
>
> Is "visible" correct?

> But, maybe, direct visibility was meant?(...)
>
> If I have "use P" and no "use Q" then conversion to T'Class will make Foo applicable in non-prefix notation.
>
>> 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.
>
> No, that requires another conversion. To see X as S from T'Class you must convert it to S. T'Class is a substitute for the intersection of all types [values of].


Since we are both trying to learn what was meant, I think this proves
my point ;-).



(Even if the "use" based interpretation does uncover a possible meaning
of the Wikibook, I think a reference to use-visibility here will
drive the reader away from the topic: the question being

   "what happens when a primitive operation Op1 calls another
     primitive operation Op2 ?"

(The example given is not conducive to an interpretations that rests
on use-visibility, I think.)


  reply	other threads:[~2017-04-24  5:13 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. [this message]
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