comp.lang.ada
 help / color / mirror / Atom feed
From: Marin David Condic <mcondic.nospam@acm.org>
Subject: Re: Newbie Questions about Get, Get_Line
Date: Sat, 30 Dec 2000 17:46:38 -0500
Date: 2000-12-30T22:45:06+00:00	[thread overview]
Message-ID: <3A4E65CD.4A828FB1@acm.org> (raw)
In-Reply-To: 92l5bf$i0p$1@nnrp1.deja.com

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
======================================================================





  parent reply	other threads:[~2000-12-30 22:46 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-30  7:33 Newbie Questions about Get, Get_Line gressett
2000-12-30 14:13 ` Marin David Condic
2000-12-30 17:17   ` Ted Dennison
2000-12-30 17:25     ` Ted Dennison
2000-12-30 22:46     ` Marin David Condic [this message]
2000-12-30 23:12       ` Ted Dennison
2000-12-30 14:31 ` Jeff Creem
2000-12-30 17:09 ` Ted Dennison
2000-12-31  8:13   ` gressett
2000-12-31 15:50     ` Larry Kilgallen
2000-12-31 17:03     ` Robert Dewar
2000-12-31 17:47     ` Ted Dennison
2000-12-31 21:07     ` tmoran
2001-01-01  6:12       ` gressett
2001-01-01 17:45         ` Robert Dewar
2001-01-01 17:46         ` Robert Dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox