comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@acm.org
Subject: Re: File_Type
Date: Sun, 18 Apr 2004 20:47:03 GMT
Date: 2004-04-18T20:47:03+00:00	[thread overview]
Message-ID: <bPBgc.164404$K91.419302@attbi_s02> (raw)
In-Reply-To: 61f665c0.0404180417.72855af4@posting.google.com

>Is there anyway to use an Integer Type like a File_Type?,
>Is there anyway to asign a File_Type the value 3?
  Perhaps you want an array
    File_List : array(1 .. 10) of File_Type;
    ...
    Open(File_List(3), ...
Or perhaps you are thinking of some systems' (eg DOS) small integer
file handles - 0=stdin, 1=stdout, 2=stderr, 3=aux, 4=prn?  Ada.Text_IO
has routines to convert the first three to File_Type:
  function Standard_Input return File_Type;
  function Standard_Output return File_Type;
  function Standard_Error return File_Type;



  parent reply	other threads:[~2004-04-18 20:47 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 ` tmoran [this message]
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       ` File_Type Keith Thompson
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