comp.lang.ada
 help / color / mirror / Atom feed
From: Magnus Larsson <mla_mla@my-deja.com>
Subject: Re: Object Oreinted Style
Date: 2000/03/31
Date: 2000-03-31T00:00:00+00:00	[thread overview]
Message-ID: <8c21qm$dbl$1@nnrp1.deja.com> (raw)
In-Reply-To: dale-617BD4.22171828032000@news.rmit.edu.au

In article <dale-617BD4.22171828032000@news.rmit.edu.au>,
Dale Stanbrough <dale@cs.rmit.edu.au> wrote:
[.....]
>
> Def. child packages "open up" the full view of a parent type declared
> in a parent package, and in this regard invite abuse by preventing
> total encapsulation.
I am by no means an expert in this area, but isn't a "private package"
a solution here?
like :
package Parent is
type Base_Type is....
...
end Parent;
private package Parent.Child is
type Derived_type is new Base_type.....
...
end Parent.Child;
Or have i completly missed the point here? I thought this construct does
exactly this and "closes" any direct access to the child.
Magnus
> Dale
>
--
.|,
-o----
mla@omicron.se


Sent via Deja.com http://www.deja.com/
Before you buy.




  reply	other threads:[~2000-03-31  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-28  0:00 Object Oreinted Style Michael Garrett
2000-03-28  0:00 ` Dale Stanbrough
2000-03-31  0:00   ` Magnus Larsson [this message]
2000-03-31  0:00     ` Dale Stanbrough
2000-04-02  0:00       ` Richard D Riehle
2000-04-02  0:00         ` David Botton
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox