From: Brian May <bam@snoopy.apana.org.au>
Subject: Re: access private element of base-class
Date: Sat, 02 Oct 2004 13:21:39 +1000
Date: 2004-10-02T13:21:39+10:00 [thread overview]
Message-ID: <sa4pt41by9o.fsf@snoopy.apana.org.au> (raw)
In-Reply-To: cjk5sn$5c5$04$1@news.t-online.com
>>>>> "Rick" == Rick Santa-Cruz <rick_santa_cruz75@msn.com> 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 <bam@snoopy.apana.org.au>
next prev parent reply other threads:[~2004-10-02 3:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-01 0:35 access private element of base-class Rick Santa-Cruz
2004-10-01 0:54 ` Jeffrey Carter
2004-10-01 7:45 ` Martin Krischik
2004-10-01 17:54 ` Jeffrey Carter
2004-10-01 17:58 ` Rick Santa-Cruz
2004-10-02 3:21 ` Brian May [this message]
2004-10-02 11:32 ` Ludovic Brenta
2004-10-02 13:56 ` Nick Roberts
2004-10-03 18:51 ` Jeffrey Carter
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox