comp.lang.ada
 help / color / mirror / Atom feed
From: "Gerd" <GerdM.O@t-online.de>
Subject: Re: How to hide type internals
Date: 4 Jul 2006 04:11:52 -0700
Date: 2006-07-04T04:11:52-07:00	[thread overview]
Message-ID: <1152011512.798125.301120@a14g2000cwb.googlegroups.com> (raw)
In-Reply-To: <uu060rpyh.fsf@nasa.gov>


Stephen Leake schrieb:

> "Gerd" <GerdM.O@t-online.de> writes:
>
> > I would like to write a package that exports functions using a special
> > type, without showing the details in the spec (even not in the private
> > part).
>
> Others have shown how to do this.
>
> But I'd like to understand _why_ you want to do this.

There are at least two reasons:

If the definition is left to the body, a change of the definition needs
only a recompilation of the body. If the full type is declared within
the spec, you would have to recompile .all. packages that "with" this
spec. Otherwise it would be enough to provide a compiled object-file
with the spec.

First this is a question of compile time (large system), second this
would give the contractor a look into your internals. The first is a
simple thing of money, the second is a security decision (e.g. if the
"user" of this package has no clearance).




      reply	other threads:[~2006-07-04 11:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-30 10:50 How to hide type internals Gerd
2006-06-30 11:19 ` claude.simon
2006-07-04 11:13   ` Gerd
2006-06-30 11:26 ` Alex R. Mosteo
2006-07-02 15:23 ` Stephen Leake
2006-07-04 11:11   ` Gerd [this message]
replies disabled

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