comp.lang.ada
 help / color / mirror / Atom feed
From: Martin Krischik <krischik@users.sourceforge.net>
Subject: Re: access private element of base-class
Date: Fri, 01 Oct 2004 09:45:12 +0200
Date: 2004-10-01T09:45:12+02:00	[thread overview]
Message-ID: <2035878.fXVvL0czMB@linux1.krischik.com> (raw)
In-Reply-To: aV17d.3257$Yr.1573@newsread3.news.pas.earthlink.net

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




  reply	other threads:[~2004-10-01  7:45 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 [this message]
2004-10-01 17:54     ` Jeffrey Carter
2004-10-01 17:58       ` Rick Santa-Cruz
2004-10-02  3:21         ` Brian May
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