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,LOTS_OF_MONEY autolearn=ham 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:57:37 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news-hub.cableinet.net!blueyonder!newspeer.clara.net!news.clara.net!news5-gui.server.ntli.net!ntli.net!news2-win.server.ntlworld.com.POSTED!not-for-mail From: "chris.danx" Newsgroups: comp.lang.ada References: Subject: Re: Designated type of actual does not match that of formal MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: Date: Thu, 11 Oct 2001 19:52:35 +0100 NNTP-Posting-Host: 62.252.137.9 X-Complaints-To: abuse@ntlworld.com X-Trace: news2-win.server.ntlworld.com 1002826345 62.252.137.9 (Thu, 11 Oct 2001 19:52:25 BST) NNTP-Posting-Date: Thu, 11 Oct 2001 19:52:25 BST Organization: ntlworld News Service Xref: archiver1.google.com comp.lang.ada:14314 Date: 2001-10-11T19:52:35+01:00 List-Id: "Ted Dennison" wrote in message news:gPlx7.24924$ev2.33632@www.newsranger.com... > 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. Thanks Ted