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 X-Google-Thread: 103376,d93b7c6dd17cbc81 X-Google-Attributes: gid103376,public From: "Jean-Pierre Rosen" Subject: Re: Strings and reading from a file Date: 1999/05/16 Message-ID: <7hn9bh$4vm$1@wanadoo.fr>#1/1 X-Deja-AN: 478569624 Content-Transfer-Encoding: 8bit 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> Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2120.0 X-Complaints-To: abuse@wanadoo.fr X-Trace: wanadoo.fr 926886065 5110 193.250.32.250 (16 May 1999 20:21:05 GMT) Organization: Adalog Mime-Version: 1.0 NNTP-Posting-Date: 16 May 1999 20:21:05 GMT Newsgroups: comp.lang.ada Date: 1999-05-16T20:21:05+00:00 List-Id: Keith Thompson a �crit dans le 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.) > Sure... but that's the part of the specification I did NOT change ;-) --------------------------------------------------------- J-P. Rosen (Rosen.Adalog@wanadoo.fr) Visit Adalog's web site at http://perso.wanadoo.fr/adalog