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.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e8fd9bf92374a60a X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!nuzba.szn.dk!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Declaration of private type Containers Date: Sat, 31 May 2008 00:28:09 -0500 Organization: Jacob's private Usenet server Message-ID: References: <6d6feee1-fe69-4d19-9745-4748d341a56e@r66g2000hsg.googlegroups.com> <9hro1g.ni4.ln@hunter.axlog.fr> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: jacob-sparre.dk 1212211705 29428 69.95.181.76 (31 May 2008 05:28:25 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Sat, 31 May 2008 05:28:25 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512 X-RFC2646: Format=Flowed; Response Xref: g2news1.google.com comp.lang.ada:493 Date: 2008-05-31T00:28:09-05:00 List-Id: "Jean-Pierre Rosen" wrote in message news:9hro1g.ni4.ln@hunter.axlog.fr... > alexander.kleppe@web.de a �crit : ... >> GNAT compiler says, this is a "premature use of private type", which I >> accept. > Glad to hear that you accept it. The ARG tried hard to allow something > like this, and eventually gave up under the pressure of an exponentially > growing mountain of cans of worms... I'm still of the opinion that we (the ARG) gave up too soon on this problem. In any case, it's still on the ARG's radar (see AI05-0074-1 and AI05-0074-2) although looking at extensions is not a high priority right now. In any case, it isn't allowed in any version of Ada. You'll have to use another (less elegant) solution, such as the child package or reexported operations suggested by others. Randy Brukardt.