Prev | Up | Next | Back | Forward
TOC -- / --.-- / --.--.-- | Index | Search | Syntax | Help


A.10.3 Default Input, Output, and Error Files

Static Semantics
(1)
The following subprograms provide for the control of the particular default files that are used when a file parameter is omitted from a Get, Put, or other operation of text input-output described below, or when application-dependent error-related text is to be output.
(2)
       procedure Set_Input(File : in File_Type);
(3)
(4)
(5)
       procedure Set_Output(File : in File_Type);
       procedure Set_Error (File : in File_Type);
(6)
(7)
       function Standard_Input return File_Type;
       function Standard_Input return File_Access;
(8)
(9)
       function Standard_Output return File_Type;
       function Standard_Output return File_Access;
(10)
(11)
       function Standard_Error return File_Type;
       function Standard_Error return File_Access;
(12)
(13)
(14)
       function Current_Input return File_Type;
       function Current_Input return File_Access;
(15)
(16)
       function Current_Output return File_Type;
       function Current_Output return File_Access;
(17)
(18)
       function Current_Error return File_Type;
       function Current_Error return File_Access;
(19)
(20)
       procedure Flush (File : in out File_Type);
       procedure Flush;
(21)
Erroneous Execution
(22)
The execution of a program is erroneous if it attempts to use a current default input, default output, or default error file that no longer exists.
(23)
If the Close operation is applied to a file object that is also serving as the default input, default output, or default error file, then subsequent operations on such a default file are erroneous.

(24)
(25)

Prev | Up | Next | Back | Forward
TOC -- / --.-- / --.--.-- | Index | Search | Syntax | Help

Ada WWW Home -- Email comments, additions, corrections, gripes, kudos, etc. to:

Magnus Kempe -- Magnus.Kempe@di.epfl.ch
Copyright statement
Page last generated: 95-03-12