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,14fb9d67ad36043 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!postnews.google.com!e53g2000hsa.googlegroups.com!not-for-mail From: pascal.malaise@gmail.com Newsgroups: comp.lang.ada Subject: Re: Object.Operation and child package Date: Wed, 25 Jun 2008 22:56:33 -0700 (PDT) Organization: http://groups.google.com Message-ID: <3742c389-5fbf-4cd9-86d8-4b1b9098d56d@e53g2000hsa.googlegroups.com> References: <87vdzx9x3n.fsf@ludovic-brenta.org> NNTP-Posting-Host: 62.147.143.11 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1214459793 23215 127.0.0.1 (26 Jun 2008 05:56:33 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 26 Jun 2008 05:56:33 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e53g2000hsa.googlegroups.com; posting-host=62.147.143.11; posting-account=uO_vzwoAAAAM7jhNZDkCkZpIghqP_5r8 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9) Gecko/2008061015 Firefox/3.0,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:888 Date: 2008-06-25T22:56:33-07:00 List-Id: Thank you all for the explanation. For the record, the most appropriate solution seems to be: package Pack.Sub is type Sub_Typ is new Typ with private; procedure Proc2 (Var : in Sub_Typ); private type Sub_Typ is new Typ with null record; end Pack.Sub; with Pack.Sub; procedure Proc is O : Pack.Sub.Sub_Typ; begin O.Proc1; O.Proc2; end Proc;