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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,20df27b13b7ee81e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-12-18 14:17:13 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: bilbo@volcanomail.com (Antoine Lec.) Newsgroups: comp.lang.ada Subject: Re: Beginner: Unchecked Deallocation Date: 18 Dec 2001 14:17:13 -0800 Organization: http://groups.google.com/ Message-ID: References: <2d87db3f.0112180600.6129c36b@posting.google.com> NNTP-Posting-Host: 80.13.53.49 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1008713833 13754 127.0.0.1 (18 Dec 2001 22:17:13 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 18 Dec 2001 22:17:13 GMT Xref: archiver1.google.com comp.lang.ada:18073 Date: 2001-12-18T22:17:13+00:00 List-Id: > Procedure free declared in the spec is parameterless. The procedure > free instantiated in the body takes an in out parameter of type > liste_acs! There is another problem when I change the definitions with this one : lcm.ads: procedure Free (LS: in out Liste_Acs); lcm.adb procedure Free (LS: in out Liste_Acs) is new Ada.Unchecked_Deallocation (Liste, Liste_Acs); This results with: procedure Free (LS: in out Liste_Acs) is | >>> formal part not allowed in instantiation So what's the problem ? -- b@v