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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,8dc50f1b24590126 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Nick Roberts Newsgroups: comp.lang.ada Subject: Re: visibility of private incomplete types Date: Fri, 29 Oct 2004 15:16:24 +0100 Message-ID: <2uf1loF27r1iqU1@uni-berlin.de> References: <4180fb61$0$20941$9b4e6d93@newsread2.arcor-online.net> <4181108a_1@baen1673807.greenlnk.net> <9NWdnRZle_mB7RzcRVn-uQ@megapath.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de W9X9qH0F6OcfWKeKMkB2lQn0Nw1hLM8GXQVdeCuMMeSnGhy34= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040803 X-Accept-Language: en-us, en In-Reply-To: <9NWdnRZle_mB7RzcRVn-uQ@megapath.net> Xref: g2news1.google.com comp.lang.ada:5862 Date: 2004-10-29T15:16:24+01:00 List-Id: Randy Brukardt wrote: >>>is GNAT correct in compiling the following program >>>without complaints? (There is a complaint if the >>>function in the body of P is uncommented.) >> >>No - according to ObjectAda v 7.2.2 > > Right, because the outer private part doesn't have visibility on the > private part of Inner. Only the body of Inner should be able to see > TI. Indeed. Also, would I be right in saying that, in Ada 95, it is not permitted for a type declared (by an incomplete type declaration) in the private part of a package to be completed in the package's body? Is this going to be permitted in Ada 2005? -- Nick Roberts