comp.lang.ada
 help / color / mirror / Atom feed
* Child package: private type and IO
@ 1998-02-14  0:00 johnjohn
  1998-02-16  0:00 ` Tom Moran
  1998-02-17  0:00 ` sparre
  0 siblings, 2 replies; 14+ messages in thread
From: johnjohn @ 1998-02-14  0:00 UTC (permalink / raw)



I'm trying to write two separate packages, one for a private
type and constructor, and the other an IO package.  House
rules. :(

The need, obviously, is for the IO package to be able to
access the private type internals, a feature which seems
to be supported via the child package system.  It's unclear
to me, however, exactly how a package is declared to be
a child of the original.

Picking up Skansholm's Ada From the Beginning, usually a pretty
good resource, is particularly emptly on package externals (file
extensions, for example).

Actually, now that I say that, Skansholm does have a reference
to naming a child package "PARENT_PKG.CHILD_NAME".

However, using this convention gets me the following compilation
error on the "with" declaration:  
file "parent_pkg-child_name.ads" not found

Any tips?  Any pointers to a better handling of child packages?

Thanks.

John




^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~1998-03-05  0:00 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-02-14  0:00 Child package: private type and IO johnjohn
1998-02-16  0:00 ` Tom Moran
1998-02-17  0:00 ` sparre
1998-02-27  0:00   ` Matthew Heaney
1998-03-01  0:00     ` type names (was Re: Child package: private type and IO) Ray Blaak
1998-03-01  0:00       ` Matthew Heaney
1998-03-01  0:00         ` Brian Rogoff
1998-03-01  0:00           ` Matthew Heaney
1998-03-03  0:00             ` Ray Blaak
1998-03-04  0:00         ` Fergus Henderson
1998-03-03  0:00           ` Brian Rogoff
1998-03-04  0:00             ` John G. Volan
1998-03-05  0:00               ` Case sensitivity [was Re: type names (was Re: Child package: private type and IO)] Anonymous
1998-03-05  0:00                 ` John G. Volan

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