From: Dale Stanbrough <dale@goanna.cs.rmit.EDU.AU>
Subject: How to hide instantiation of Direct_IO?
Date: 1997/02/11
Date: 1997-02-11T00:00:00+00:00 [thread overview]
Message-ID: <5dqt5n$j3s$1@goanna.cs.rmit.edu.au> (raw)
I'ld like to develop a package on top of the rather low level Direct_IO,
but prevent access to the instantiation of Direct_IO itself.
I could do this by instantiating direct_io in a private part of a
package, and then declare higher level routines in child packages which
for the most part, simply forward the work onto the equivalent direct_io
routines.
However there seems no way to declare a type Count for my higher level
package such that it has the same range as that defined in Direct_IO
(type Count is 0..implementation-defined) - I can't reference the
private instantiation - 'cos it's private!
Is there _any_ way around this problem? The _only_ solution I can think
of is not to declare a type, and just have a rather yucky function...
function Max_File_Size return Integer; -- truly non portable!
function Size(File : My_File_Type) return Integer;
Dale
next reply other threads:[~1997-02-11 0:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-02-11 0:00 Dale Stanbrough [this message]
1997-02-20 0:00 ` How to hide instantiation of Direct_IO? Norman H. Cohen
1997-02-22 0:00 ` Robert Dewar
1997-02-25 0:00 ` Norman H. Cohen
1997-02-25 0:00 ` Robert Dewar
1997-02-27 0:00 ` Norman H. Cohen
1997-03-01 0:00 ` Richard Kenner
1997-03-01 0:00 ` Robert Dewar
1997-03-02 0:00 ` Fergus Henderson
1997-03-02 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