From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "G.B." Newsgroups: comp.lang.ada Subject: Re: Ada wikibook help needed (O-O) Date: Mon, 24 Apr 2017 07:13:39 +0200 Organization: A noiseless patient Spider Message-ID: References: Reply-To: nonlegitur@notmyhomepage.de Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 24 Apr 2017 05:10:29 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="ccac67b0c16f6d6f28337b229201db4b"; logging-data="12140"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+zGLUKLCHh9mh/DrHQFxTRxh0IpFEHfAE=" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 In-Reply-To: Cancel-Lock: sha1:zZlvSRWpuqITtht1+WbCFWaIQ44= Xref: news.eternal-september.org comp.lang.ada:46615 Date: 2017-04-24T07:13:39+02:00 List-Id: 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.)