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,WEIRD_PORT 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 06:00:56 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: Mark.Doherty@uk.thalesgroup.com (Mark Doherty) Newsgroups: comp.lang.ada Subject: Re: Beginner: Unchecked Deallocation Date: 18 Dec 2001 06:00:56 -0800 Organization: http://groups.google.com/ Message-ID: <2d87db3f.0112180600.6129c36b@posting.google.com> References: NNTP-Posting-Host: 194.128.85.8 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1008684056 1654 127.0.0.1 (18 Dec 2001 14:00:56 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 18 Dec 2001 14:00:56 GMT Xref: archiver1.google.com comp.lang.ada:18049 Date: 2001-12-18T14:00:56+00:00 List-Id: bilbo@volcanomail.com (Antoine Lec.) wrote in message news:... > My procedure: > > procedure Free is > new Ada.Unchecked_Deallocation (Liste, Liste_Acs); > > works fine when I put this code directly in the main program, but that's not > my goal; I didn't manage to put this procedure, like the other functions, > in the body and in the specification parts of my package. > When I try to do that, i got this error: > > package body LCM is > | > >>> missing body for "Free" declared at lcm.ads:28 > > I don't understand (maybe because of misunderstanding of the Generic concept ?) > > Is this procedure supposed to have a "body" ? I thought the body was provided by > the instanciation of the generic procedure ? (I'm not sure about the exact terms) > Procedure free declared in the spec is parameterless. The procedure free instantiated in the body takes an in out parameter of type liste_acs!