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=0.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_FROM_MSSP autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c0d188b409ece1ea X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-11 11:48:11 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!out.nntp.be!propagator-SanJose!in.nntp.be!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison References: Subject: Re: Designated type of actual does not match that of formal Message-ID: X-Abuse-Info: When contacting newsranger.com regarding abuse please X-Abuse-Info: forward the entire news article including headers or X-Abuse-Info: else we will not be able to process your request X-Complaints-To: abuse@newsranger.com NNTP-Posting-Date: Thu, 11 Oct 2001 14:47:40 EDT Organization: http://www.newsranger.com Date: Thu, 11 Oct 2001 18:47:40 GMT Xref: archiver1.google.com comp.lang.ada:14312 Date: 2001-10-11T18:47:40+00:00 List-Id: In article , chris.danx says... >type xxx is new abc with private; -- where abc is abstract & limited; >type xxx_access is access all xxx'class; > >I tried > >procedure free is new ada.unchecked_deallocation (xxx, xxx_access); > >but it doesn't work. I get the error 'Designated type of actual does not >match that of formal "name"?'. What am I missing? That's because it doesn't. xxx_access points to objects of type "xxx'class", not xxx. Change one or the other to match, and it ought to work. --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced.