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,386228a37afe967f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-15 21:37:22 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread2.prod.itd.earthlink.net.POSTED!not-for-mail From: "Matthew Heaney" Newsgroups: comp.lang.ada References: <1ec946d1.0307150715.4ba69f85@posting.google.com> <3F149243.80304@attbi.com> Subject: Re: Computer Language Shootout X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: Date: Wed, 16 Jul 2003 04:37:32 GMT NNTP-Posting-Host: 67.75.63.213 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.prod.itd.earthlink.net 1058330252 67.75.63.213 (Tue, 15 Jul 2003 21:37:32 PDT) NNTP-Posting-Date: Tue, 15 Jul 2003 21:37:32 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: archiver1.google.com comp.lang.ada:40321 Date: 2003-07-16T04:37:32+00:00 List-Id: "Robert I. Eachus" wrote in message news:3F149243.80304@attbi.com... > Matthew Heaney wrote: > > > It's not necessary to pass the object Standard_Input explicitly to > > End_Of_Line and Get_Line, because those operations are overloaded to > > read from standard input by default. > > I know, I'm a language lawyer. But I hardly ever claim to be anything > else. I am sure you meant that these operations are overloaded to use > Current_Output, which defaults to Standard_Output. ;-) Actually, I meant End_Of_File, not End_Of_Line. Do you really mean that End_Of_File and Get_Line use Current_Output? I thought they used Current_Input. Aside: I don't ever use End_Of_Line, since the locution if Last < Line'Last then conveys all the information I need wrt whether the entire line has been consumed. What is End_Of_Line buying me that the idiom above does not? -Matt