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: Keith Thompson Subject: Re: Strings and reading from a file Date: 1999/05/14 Message-ID: #1/1 X-Deja-AN: 477956564 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> X-Complaints-To: usenet@nusku.cts.com X-Trace: nusku.cts.com 926717328 5823 198.68.168.21 (14 May 1999 21:28:48 GMT) Organization: CTS Network Services NNTP-Posting-Date: 14 May 1999 21:28:48 GMT Newsgroups: comp.lang.ada Date: 1999-05-14T21:28:48+00:00 List-Id: "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.) -- Keith Thompson (The_Other_Keith) kst@cts.com San Diego Supercomputer Center <*> Techno-geek. Mouse bigger than phone. Bites heads off virtual chickens.