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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d93b7c6dd17cbc81 X-Google-Attributes: gid103376,public From: "David C. Hoos, Sr." Subject: Re: Strings and reading from a file Date: 1999/05/14 Message-ID: <7hi7nm$fsk@hobbes.crc.com>#1/1 X-Deja-AN: 477974526 References: <7han2q$jkp$1@news.iinet.net.au> <37399913.BD928DD1@pwfl.com> <7hevh1$g08$1@nnrp1.deja.com> <7hf2bc$imm$1@nnrp1.deja.com> <7hf611$16i$1@cnn.Princeton.EDU> <373B93FC.9E89E2C2@Botton.com> <7hgvsb$fgj$1@wanadoo.fr> Organization: Coleman Research Corporation X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3612.1700 Newsgroups: comp.lang.ada Date: 1999-05-14T00:00:00+00:00 List-Id: Keith Thompson wrote in message ... >"Jean-Pierre Rosen" writes: >[...] >> While were at improving it, what about: >> function Next_Line >> (File : in Ada.Text_IO.File_Type := Ada.Text_Io.Standard_Input; >> Guessed_Length : Positive := 256) return String is >[...] > >Shouldn't the default for File be Ada.Text_IO.Current_Input rather >than Ada.Text_IO.Standard_Input? (Not that I've ever understood the >need for the distinction, but we might as well be consistent.) > Current_Input is switchable from file to file by a running program, whereas Standard_Input is fixed from the program's perspective.