comp.lang.ada
 help / color / mirror / Atom feed
* How to hide instantiation of Direct_IO?
@ 1997-02-11  0:00 Dale Stanbrough
  1997-02-20  0:00 ` Norman H. Cohen
  0 siblings, 1 reply; 10+ messages in thread
From: Dale Stanbrough @ 1997-02-11  0:00 UTC (permalink / 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




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

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

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-02-11  0:00 How to hide instantiation of Direct_IO? Dale Stanbrough
1997-02-20  0:00 ` 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

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