comp.lang.ada
 help / color / mirror / Atom feed
From: dale@cs.rmit.edu.au (Dale Stanbrough)
Subject: Re: Private Children
Date: 1999/06/21
Date: 1999-06-21T00:02:32+00:00	[thread overview]
Message-ID: <dale-2106991002230001@dale.cs.rmit.edu.au> (raw)
In-Reply-To: m3bteacxb8.fsf@mheaney.ni.net

Matthew Heaney wrote:

" Can a public child package with its private sibling?
  
  According to my compiler, the answer is no.  When I try to compile the
  unit below (P.C2), I get the following error message:
  
  gcc -c -gnatc /home/matt/p-c2.ads
  p-c2.ads:1:06: current unit must also be private descendant of "P"
  
  
  Public child P.C2 only uses the entity provided by its private sibling
  P.C1 in its private region.  What is the rationale for making this
  illegal?"


Tucker Taft once explained that this allows for "compilation privacy"
(my description). This guarentees that if a private package spec changes,
you don't have to do any recompilation of any public packages (just
relinking).

Personally I don't care for it, and would have much preferred
"implementation privacy" where changes to a spec of a private
package could still mean that public clients may have to be
recompiled, but not updated in any other way.

Dale




  reply	other threads:[~1999-06-21  0:00 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-20  0:00 Private Children Matthew Heaney
1999-06-21  0:00 ` Dale Stanbrough [this message]
1999-06-21  0:00 ` Ted Dennison
1999-06-21  0:00   ` Tucker Taft
1999-06-21  0:00     ` Matthew Heaney
1999-06-21  0:00     ` Matthew Heaney
1999-06-21  0:00       ` Tucker Taft
1999-06-22  0:00         ` Richard D Riehle
1999-06-22  0:00           ` Dale Stanbrough
1999-06-22  0:00             ` Richard D Riehle
1999-06-22  0:00             ` Matthew Heaney
1999-06-23  0:00               ` Dale Stanbrough
1999-06-23  0:00                 ` Matthew Heaney
1999-06-23  0:00                   ` Dale Stanbrough
1999-06-23  0:00                     ` Richard D Riehle
1999-06-23  0:00                       ` Vladimir Olensky
1999-06-23  0:00                         ` Richard D Riehle
1999-06-24  0:00                           ` Hyman Rosen
1999-06-24  0:00                             ` Richard D Riehle
1999-06-23  0:00                       ` John Duncan
1999-06-24  0:00                       ` Dale Stanbrough
1999-06-25  0:00   ` Robert Dewar
replies disabled

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