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,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c0d188b409ece1ea,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-11 11:31:39 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!btnet-peer0!btnet!news5-gui.server.ntli.net!ntli.net!news2-win.server.ntlworld.com.POSTED!not-for-mail From: "chris.danx" Newsgroups: comp.lang.ada Subject: Designated type of actual does not match that of formal "name"? MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" 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:26:33 +0100 NNTP-Posting-Host: 62.252.144.151 X-Complaints-To: abuse@ntlworld.com X-Trace: news2-win.server.ntlworld.com 1002824780 62.252.144.151 (Thu, 11 Oct 2001 19:26:20 BST) NNTP-Posting-Date: Thu, 11 Oct 2001 19:26:20 BST Organization: ntlworld News Service Xref: archiver1.google.com comp.lang.ada:14308 Date: 2001-10-11T19:26:33+01:00 List-Id: Hi, I'm trying to instantiate an instance of Ada.Unchecked_Deallocation on a type which is defined as follows 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? If there isn't a way around this then the record type which holds an item of type xxx_access will have to be limited (and hold an item of type xxx instead). That might not be such a bad idea in this instance, but I'd like to know how what exactly the error means anyway. Thanks, Chris