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 X-Received: by 2002:ac8:d87:: with SMTP id s7mr2400048qti.32.1619086879845; Thu, 22 Apr 2021 03:21:19 -0700 (PDT) X-Received: by 2002:a5b:e90:: with SMTP id z16mr3765073ybr.303.1619086879715; Thu, 22 Apr 2021 03:21:19 -0700 (PDT) Path: eternal-september.org!reader02.eternal-september.org!paganini.bofh.team!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 22 Apr 2021 03:21:19 -0700 (PDT) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=35.245.252.196; posting-account=XfA3zgkAAABoz6fRf3Tehtnqqr7Ycml- NNTP-Posting-Host: 35.245.252.196 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> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <19656eed-db15-4910-804f-647971032bcbn@googlegroups.com> Subject: Re: Unchecked_Deallocation with tagged types From: Vincent Marciante Injection-Date: Thu, 22 Apr 2021 10:21:19 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:61896 List-Id: On Wednesday, April 21, 2021 at 9:28:06 AM UTC-4, J-P. Rosen wrote: > Le 21/04/2021 =C3=A0 12:21, Vincent Marciante a =C3=A9crit :=20 > > But that idiom pretty much prohibits "using" more than one package with= such naming:=20 > >=20 > > use Queues, Lists;=20 > >=20 > > Queue : Handle; --\ Both=20 > > List : Handle; --/ ambiguous=20 > > > I would not agree with "prohibits". You may still use qualified notation= =20 > in the scope of a "use" clause, so yes, you have to write:=20 > Queue : Queues.Handle;=20 > List : Lists.Handle;=20 >=20 > which is not worse that having:=20 > Queue : Queues_Handle;=20 > List : Lists_Handle; > --=20 > J-P. Rosen=20 > Adalog=20 > 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX=20 > Tel: +33 1 45 29 21 52 > https://www.adalog.fr Of course you are correct (my last response seems to have been garbled by G= oogle groups). But - in the case the there is only one such type involved, I'd prefer X : List; Y : List; instead of X : Handle; Y : Handle; I do not like the idea/idiom that the type always has the same name - handl= e - and=20 "thingness" is only expressed by the package name. _That_ seems way more r= edundant and is a redundancy that cannot be removed by a "use" clause, whereas, the = redundancy=20 in something like Guests : Lists.List; can be made to be Guests : List and= still express the nature of the data structure. But like I wrote in my garbled response, I think that it ultimately become = an issue of individual preference. (Not talking about what might be the decree/agreemen= t in the=20 guidelines/standard of a multi-person project.)=20