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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,7f854d193f44af15 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!feed.news.tiscali.de!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: access private element of base-class Date: Fri, 01 Oct 2004 09:45:12 +0200 Organization: AdaCL Message-ID: <2035878.fXVvL0czMB@linux1.krischik.com> References: Reply-To: krischik@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1096617317 02 25205 Fr4kXW0rpUCvS9Yg 041001 07:55:17 X-Complaints-To: usenet-abuse@t-online.de X-ID: GFovakZrQeur13PUlzQmBtCP7DdArYn5anEipk6IYHjEbtbd1rIj4E User-Agent: KNode/0.8.0 Xref: g2news1.google.com comp.lang.ada:4491 Date: 2004-10-01T09:45:12+02:00 List-Id: Jeffrey Carter wrote: > Rick Santa-Cruz wrote: >> >> I read, that the Ada-private is more similar to protected than to C++ >> private, so I tried the following: > > It's like C++'s "protected" because the full view is visible in > > A private child package > > The private part and body of a public child package > > Since you don't have a child package, private is private in your > package; the full view is not visible outside the package and its > children. In C++ talk: Protection in Ada work on the "namespace" and not on the "class". This needs some getting use to but has the advantage that it works with classic (non OO) programming as well. With Regards Martin -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com