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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,93d7def3eeefbc26 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!z14g2000cwz.googlegroups.com!not-for-mail From: danmcleran@hotmail.com Newsgroups: comp.lang.ada Subject: Re: Private area and child packages Date: 30 Dec 2004 07:31:48 -0800 Organization: http://groups.google.com Message-ID: <1104420708.559607.11230@z14g2000cwz.googlegroups.com> References: <1104293158.276241.42640@f14g2000cwb.googlegroups.com> NNTP-Posting-Host: 172.157.129.68 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1104420747 16205 127.0.0.1 (30 Dec 2004 15:32:27 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 30 Dec 2004 15:32:27 +0000 (UTC) User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: z14g2000cwz.googlegroups.com; posting-host=172.157.129.68; posting-account=LSix6gsAAACmBFWMCbh6syCaua0lawvj Xref: g2news1.google.com comp.lang.ada:7326 Date: 2004-12-30T07:31:48-08:00 List-Id: What about using Ada's Limited_Controlled type? Then, since no copies could be made, I could do something like this: with Ada.Finalization; package Some_Package is type Secret_Type is tagged limited private; private type Implementation_Type; type Implementation_Access_Type is access Implementation_Type; type Secret_Type is new Ada.Finalization.Limited_Controlled with record Implementation_Access : Implementation_Access_Type := null; end record; end Some_Package;