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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,81ea1855a67f537a,start X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!e23g2000prf.googlegroups.com!not-for-mail From: Javi Newsgroups: comp.lang.ada Subject: declaration of an incomplete private type before the private part Date: Fri, 1 Feb 2008 00:28:44 -0800 (PST) Organization: http://groups.google.com Message-ID: <5e8bc9cb-a2c1-4c9c-8308-ca8b709801f5@e23g2000prf.googlegroups.com> NNTP-Posting-Host: 213.229.146.17 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1201854524 6505 127.0.0.1 (1 Feb 2008 08:28:44 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 1 Feb 2008 08:28:44 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e23g2000prf.googlegroups.com; posting-host=213.229.146.17; posting-account=k8j1NwoAAABh1tdgXNQ0vrLWXUAxypwQ User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 garbi.gtd.es:3128 (Squid/2.4.STABLE6) Xref: g2news1.google.com comp.lang.ada:19672 Date: 2008-02-01T00:28:44-08:00 List-Id: hi guys, I'm very newbye to ADA, so my apologizes in advance. My problem: I need to do a declaration such as: ----------------------------------------- ... type ListNode is private; type List is private; package IterList is new Iterators (Creator => List, Item => ListNode, getFirst => Lists.getFirst, getNext => Lists.getNext, isLast => Lists.isLast); function makeIter (L : List) return IterList.Iterator; ... private: (complete declaration of ListNode and List) ----------------------------------------- The problem is that I need to complete the type (ListNode and List) before instancing the new package. But I do not know how to do that! The only solution I have found is to declare the types non-private and then give them the complete declaration. Obviously, this solution does not satisfy me since I want to make the types private. Can anyone help me, please? Thanks in advance, Javier