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,d4e2f238dc61c890 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!postnews.google.com!m45g2000hsb.googlegroups.com!not-for-mail From: Adam Beneschan Newsgroups: comp.lang.ada Subject: Re: Protected types and visibility of their internals Date: Wed, 9 Jul 2008 08:12:53 -0700 (PDT) Organization: http://groups.google.com Message-ID: <05f75217-d855-40c5-843c-c4b29c923661@m45g2000hsb.googlegroups.com> References: <5dfd2485-ae32-407d-a5e6-7caab2e79898@x41g2000hsb.googlegroups.com> NNTP-Posting-Host: 66.126.103.122 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1215616373 28883 127.0.0.1 (9 Jul 2008 15:12:53 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 9 Jul 2008 15:12:53 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: m45g2000hsb.googlegroups.com; posting-host=66.126.103.122; posting-account=duW0ogkAAABjRdnxgLGXDfna0Gc6XqmQ User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.7.12-1.3.1,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:1048 Date: 2008-07-09T08:12:53-07:00 List-Id: On Jul 8, 10:04 pm, christoph.gr...@eurocopter.com wrote: > If you want the protected type to be visible, alas there is no other > place to declare this type than in the visible part of the package. > This is inconvenient. The rationale for this? > > You can however hide the PO in the body and export the operations via > renaming. Except that if he's trying to declare a protected *type*, that probably means he wants to declare more than one protected object of that type, so renaming isn't going to work. You'll probably have to use a wrapper or follow Georg's suggestion. -- Adam