From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ba2f8edf6a585206 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-04-18 13:47:03 PST Path: archiver1.google.com!news1.google.com!news.glorb.com!wn51feed!worldnet.att.net!attbi_s02.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: File_Type References: <61f665c0.0404180417.72855af4@posting.google.com> X-Newsreader: Tom's custom newsreader Message-ID: NNTP-Posting-Host: 24.6.132.82 X-Complaints-To: abuse@comcast.net X-Trace: attbi_s02 1082321223 24.6.132.82 (Sun, 18 Apr 2004 20:47:03 GMT) NNTP-Posting-Date: Sun, 18 Apr 2004 20:47:03 GMT Organization: Comcast Online Date: Sun, 18 Apr 2004 20:47:03 GMT Xref: archiver1.google.com comp.lang.ada:7316 Date: 2004-04-18T20:47:03+00:00 List-Id: >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;