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,8d3f28f2a74233d2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-12-30 14:48:03 PST Path: supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!gestalt.direcpc.com!news-out.usenetserver.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!news.mindspring.net!not-for-mail From: Marin David Condic Newsgroups: comp.lang.ada Subject: Re: Newbie Questions about Get, Get_Line Date: Sat, 30 Dec 2000 17:46:38 -0500 Organization: Quadrus Corporation Message-ID: <3A4E65CD.4A828FB1@acm.org> References: <3A4DED82.C23CDB77@acm.org> <92l5bf$i0p$1@nnrp1.deja.com> NNTP-Posting-Host: d1.56.a0.39 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Server-Date: 30 Dec 2000 22:45:06 GMT X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U) X-Accept-Language: en Xref: supernews.google.com comp.lang.ada:3477 Date: 2000-12-30T22:45:06+00:00 List-Id: Ted Dennison wrote: > Uhhh....no, I don't think so. If Last = Buffer'last, then there is more > input from the same line, and Get_Line needs to be called again to read > it. (This can mean that a later call to Get_Line will return with a > length of 0.) For a good discussion of this, see > http://www.adapower.com/lang/get_line.html > Then I guess I stand corrected. :-) Maybe I was confusing the behavior because of the reference to Skip_Line? As for my use of it - I always use a string way bigger than what I'd think could be reasonably be used in most cases. Then of course there are recursive techniques that can guarantee you don't overflow the buffer. MDC -- ====================================================================== Marin David Condic - Quadrus Corporation - http://www.quadruscorp.com/ Send Replies To: m c o n d i c @ q u a d r u s c o r p . c o m Visit my web site at: http://www.mcondic.com/ "Giving money and power to Government is like giving whiskey and car keys to teenage boys." -- P. J. O'Rourke ======================================================================