From: Pascal Ledru <Ledru#m#_Pascal@MSMAIL3.HAC.COM>
Subject: Re: Private Child Unit
Date: 1996/12/03
Date: 1996-12-03T00:00:00+00:00 [thread overview]
Message-ID: <32A4EBC1.36AC@MSMAIL3.HAC.COM> (raw)
In-Reply-To: 32A20D77.1810@bix.com
Here is a similar case:
I have a package Net_IO providing thick binding to networking functions
(e.g., Socket).
For example:
function Socket(Af, Socket_Type, Protocol : Integer) return Socket_T
( which also raises an exception if necessary)
This function calls a similar function frim the Winsock library
(thin binding):
function socket(af, socket_type, protocol: C.Int) ...
pragma Import(C, socket, "_socket@12");
All the thick binding functions are in the Net_IO package while the thin
binding functions
are in the private child package Net_IO.Winsock.
Ypu could argue that all the functions from the Net_IO.Winsock package
could be in the body
of Net_IO but using a private child package makes things more modular.
Pascal Ledru
next prev parent reply other threads:[~1996-12-03 0:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-11-28 0:00 Private Child Unit Paul Chardon
1996-12-01 0:00 ` Tom Moran
1996-12-03 0:00 ` Pascal Ledru [this message]
1996-12-02 0:00 ` Michel Gauthier
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox