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 X-Google-Thread: 103376,cbb87dd49168c396 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-31 00:53:52 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!uninett.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: Get_Line Date: Thu, 31 Oct 2002 08:53:51 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: <3DBF3659.30709@acm.org> <4dRv9.46453$wm6.7691@nwrddc01.gnilink.net> <3DC0204E.4050203@acm.org> NNTP-Posting-Host: kiuk0152.chembio.ntnu.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: tyfon.itea.ntnu.no 1036054431 1988 129.241.83.78 (31 Oct 2002 08:53:51 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Thu, 31 Oct 2002 08:53:51 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:30247 Date: 2002-10-31T08:53:51+00:00 List-Id: Jeffrey Carter wrote: > This calls Skip_Line if you have read an empty line. But Get_Line will > skip the line terminator if you read an empty line (or any line with < > Buffer'Length characters). What you want to do is call Skip_Line if > Get_Line has not skipped the line terminator, which happens if the input > is >= Buffer'Length characters: > > if Last >= Buffer'Last then ^^ Hmm, can Last be > than Buffer'Last ? -- Preben Randhol -------------------- http://www.pvv.org/~randhol �.., chaos is found in greatest abundance wherever order is being sought. It always defeats order, because it is better organized.� -- Interesting Times, Terry Pratchett