From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Path: eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: Unchecked_Deallocation with tagged types Date: Wed, 21 Apr 2021 15:42:29 +0200 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <607b56f8$0$3721$426a34cc@news.free.fr> <607bf826$0$3733$426a74cc@news.free.fr> <86im4hj6eh.fsf@stephe-leake.org> <827fce15-8277-4ec8-a627-01158b42a191n@googlegroups.com> <4205785c-6818-4e26-b931-5a775e2c426cn@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 21 Apr 2021 13:42:31 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="4dc34c2b8d03e1c3394a35f4869e0b30"; logging-data="7359"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/r4qFMLF1sez2tYpkuR9wNeHHEXV88FUg=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 Cancel-Lock: sha1:KQaUq0jSJ12vLFjkqylErv/Cd4w= In-Reply-To: <4205785c-6818-4e26-b931-5a775e2c426cn@googlegroups.com> Content-Language: en-US Xref: reader02.eternal-september.org comp.lang.ada:61886 List-Id: On 4/21/21 12:21 PM, Vincent Marciante wrote: > On Tuesday, April 20, 2021 at 4:57:00 PM UTC-4, Jeffrey R. Carter wrote: >> On 4/20/21 7:34 PM, Vincent Marciante wrote: >>> >>> Lists.List >> >> My objection is that this says the same thing twice (hence my joke about adding >> more variants of "List" to it). "This is a list, and by the way, this is a >> list." To me, Lists.Handle says, "This is something that lets you manipulate a >> hidden implementation of lists." >> >> But the most important thing, I think, is that you've thought about naming ... > > But that idiom pretty much prohibits "using" more than one package with such naming: > > use Queues, Lists; > > Queue : Handle; --\ Both > List : Handle; --/ ambiguous Yes. But you can't use your preferred naming (pkg Lists, type List) either: Queue : Queue; -- Both List : List; -- illegal Unless you give the pkg name, too, which you can do in either case. -- Jeff Carter "Monsieur Arthur King, who has the brain of a duck, you know." Monty Python & the Holy Grail 09