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,8e00db9621be96e0 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!41g2000yqf.googlegroups.com!not-for-mail From: Srini - Newsgroups: comp.lang.ada Subject: Re: Package Hierarchy and Private functions Date: Wed, 18 Mar 2009 05:56:19 -0700 (PDT) Organization: http://groups.google.com Message-ID: <87fb2096-3b26-4161-bdbf-661643beee62@41g2000yqf.googlegroups.com> References: NNTP-Posting-Host: 98.216.109.119 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1237380979 3718 127.0.0.1 (18 Mar 2009 12:56:19 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 18 Mar 2009 12:56:19 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 41g2000yqf.googlegroups.com; posting-host=98.216.109.119; posting-account=mZyFSQoAAABfOmklsh1d8TPbS2LncUKl User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:5142 Date: 2009-03-18T05:56:19-07:00 List-Id: Thanks. The doubt came due to an error message that I misunderstood. srini On Mar 18, 8:42=A0am, Maciej Sobczak wrote: > On 18 Mar, 13:22, "RasikaSriniva...@gmail.com" > > > > wrote: > > Supposing we have 2 packages like : > > > package P is > > =A0 type Pvt_T is private ; > > private > > =A0 type Pvt_T is ... ; > > =A0 procedure Pvt_Proc(p : in out Pvt_T) ; > > end P ; > > > --------------------- > > > package P.C is > > .... > > end P.C ; > > > ------------------ > > > Is there a way for P.C to access Pvt_Proc > > Yes. Just do it. > > > I guess this may be analogous to protected in C++? > > Ada's private *is* analogous to protected in C++. > > > Does P.C has a special relationship to P? > > Yes, it can see its private (which means protected) parts. > > -- > Maciej Sobczak *www.msobczak.com*www.inspirel.com > > Database Access Library for Ada:www.inspirel.com/soci-ada