comp.lang.ada
 help / color / mirror / Atom feed
From: Keith Thompson <kst-u@mib.org>
Subject: Re: File_Type
Date: Tue, 20 Apr 2004 19:39:31 GMT
Date: 2004-04-20T19:39:31+00:00	[thread overview]
Message-ID: <lnu0zezbf0.fsf@nuthaus.mib.org> (raw)
In-Reply-To: 2004420-10826-784447b@foorum

Ludovic Brenta <ludovic.brenta@insalien.org> writes:
> Jorge Suarez-Solis Rivaya asked:
> > Is there anyway to use an Integer Type like a File_Type?,
> > Is there anyway to asign a File_Type the value 3?
> 
> Yes, there is, on Unix and Unix-like operating systems; perhaps also
> on others as well.  The way to achieve this is to write a thin binding
> to the operating system's file management functions, like so:
> 
> package Low_Level_IO is
[...]

You might want to pick a different name.  If I recall correctly,
Low_Level_IO was the name of a predefined package in Ada 83.  It was
optional, and I'm not even sure anybody ever implemented it, but
it's best to avoid name collisions.

-- 
Keith Thompson (The_Other_Keith) kst-u@mib.org  <http://www.ghoti.net/~kst>
San Diego Supercomputer Center             <*>  <http://users.sdsc.edu/~kst>
Schroedinger does Shakespeare: "To be *and* not to be"



  reply	other threads:[~2004-04-20 19:39 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-18 12:17 File_Type Jorge Suarez-Solis Rivaya
2004-04-18 16:30 ` File_Type Martin Krischik
2004-04-18 20:47 ` File_Type tmoran
2004-04-18 22:02 ` File_Type sk
2004-04-20  5:30   ` File_Type Simon Wright
2004-04-20  8:08     ` File_Type Ludovic Brenta
2004-04-20 19:39       ` Keith Thompson [this message]
2004-04-20  8:23     ` File_Type sk
2004-04-18 22:11 ` File_Type Marius Amado Alves
2004-04-18 23:17   ` File_Type Georg Bauhaus
2004-04-21 17:03     ` File_Type Warren W. Gay VE3WWG
replies disabled

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