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,7f854d193f44af15 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit From: Brian May Newsgroups: comp.lang.ada Subject: Re: access private element of base-class References: <2035878.fXVvL0czMB@linux1.krischik.com> Date: Sat, 02 Oct 2004 13:21:39 +1000 Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:FFaswBR8NAgX+qz3zG7/B4V0vrY= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: dsl-202-173-153-89.vic.westnet.com.au X-Trace: news.melbourne.pipenetworks.com 1096687289 202.173.153.89 (2 Oct 2004 13:21:29 +1000) X-Complaints-To: abuse@pipenetworks.com X-Abuse-Info: Please forward all headers to enable your complaint to be properly processed. Path: g2news1.google.com!news1.google.com!sn-xit-04!sn-xit-10!sn-xit-01!sn-xit-14!supernews.com!64.59.134.4.MISMATCH!pd7cy1no!pd7cy2so!shaw.ca!news-out1.nntp.be!propagator2-sterling!propagator3-cogent!news-in-sterling.newsfeeds.com!news.alphalink.com.au!news.melbourne.pipenetworks.com!not-for-mail Xref: g2news1.google.com comp.lang.ada:4545 Date: 2004-10-02T13:21:39+10:00 List-Id: >>>>> "Rick" == Rick Santa-Cruz writes: >>> 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. >> It also eliminates the need for "friends", an ugly kludge. Rick> Why this? In Ada you can put multiple "classes" in one package. Hence there is no need to use "friends". This isn't as flexible at C++ friends, where you can make any class a friend, but I have also heard complaints that C++ friends are too flexible, making code complicated. -- Brian May