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=-0.5 required=3.0 tests=BAYES_05,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.5-pre1 X-Received: by 2002:ae9:f819:: with SMTP id x25mr654705qkh.68.1618759420605; Sun, 18 Apr 2021 08:23:40 -0700 (PDT) X-Received: by 2002:a25:ccd2:: with SMTP id l201mr12207551ybf.161.1618759420292; Sun, 18 Apr 2021 08:23:40 -0700 (PDT) Path: eternal-september.org!reader02.eternal-september.org!news.mixmin.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: Sun, 18 Apr 2021 08:23:40 -0700 (PDT) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=2a02:1206:4564:bea0:cd33:76d0:7b15:b095; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG NNTP-Posting-Host: 2a02:1206:4564:bea0:cd33:76d0:7b15:b095 References: <607b56f8$0$3721$426a34cc@news.free.fr> <07863309-4541-4497-8cec-d88179e634bdn@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <3d6e49b6-f195-4dc2-bf4b-795f18f2da9dn@googlegroups.com> Subject: Re: Unchecked_Deallocation with tagged types From: Gautier write-only address Injection-Date: Sun, 18 Apr 2021 15:23:40 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:61824 List-Id: Le dimanche 18 avril 2021 =C3=A0 17:14:13 UTC+2, J-P. Rosen a =C3=A9crit=C2= =A0: > I meant it the other way round: if the module has no "with=20 > unchecked_deallocation", you know it does not deallocate anything,=20 > without looking at the entire body. Not at all: the instantiation can be defined of in another package - and it= is often the case - with any name (Free, Dispose, ...). So actually with the present way it is difficult to track where unchecked d= eallocation is used, plus it is tedious for the programmers. The P'Free atttribute or the "unchecked_free P;" statement would be straig= htforward to track.