From mboxrd@z Thu Jan 1 00:00:00 1970
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
ip-172-31-65-14.ec2.internal
X-Spam-Level:
X-Spam-Status: No, score=-3.2 required=3.0 tests=BAYES_00,FREEMAIL_FROM,
NICE_REPLY_A,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no
version=3.4.6
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Blady
Newsgroups: comp.lang.ada
Subject: Re: Equivalence between named access and anonymous access.
Date: Thu, 7 Sep 2023 21:10:12 +0200
Organization: A noiseless patient Spider
Message-ID:
References:
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 7 Sep 2023 19:10:12 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="68eaaf7d227959c42758bdcbaf13b1a8";
logging-data="3260769"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/M/HqJr2ITab84ZKedkFyL"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
Gecko/20100101 Thunderbird/102.13.0
Cancel-Lock: sha1:+iW3X63kWO5ojZEbx0dBsCGAQqk=
Content-Language: fr, en-US
In-Reply-To:
Xref: news.eternal-september.org comp.lang.ada:65616
List-Id:
Le 07/09/2023 à 18:18, Jeffrey R.Carter a écrit :
> On 2023-09-07 18:06, Blady wrote:
>>
>> Why choosing named access for New_BorderLayout and anonymous access
>> for AddLayoutComponent or GetLayoutComponent for the type of
>> parameters P1_xxx and the return type?
>
> It's very poor design to have access types in the visible part of a
> non-private pkg spec.
>
Hello Jeff,
I got you point :-)
But, in this specific case, I was wondering why not writing all with
named access or all with anonymous access?
Pascal.