From: mheaney@ni.net (Matthew Heaney)
Subject: Re: Text_IO.Get_Line
Date: 1997/05/19
Date: 1997-05-19T00:00:00+00:00 [thread overview]
Message-ID: <mheaney-ya023680001905971943410001@news.ni.net> (raw)
In-Reply-To: 19970519224400.SAA06280@ladder02.news.aol.com
In article <19970519224400.SAA06280@ladder02.news.aol.com>, rehixon@aol.com
(RE Hixon) wrote:
>Thanks for your reply concerning Get_Line. In MASM 6.1, when I request a
>buffered string input, the system will only allow the user to enter the
>maximum number of characters that I have allowed to be stored in memory.
>If the user trys to enter more than what I have declared, the system will
>beep and not allow any more input. I would like to duplicate this using
>Ada 95.
But the point is that that doesn't necessarily need to be a restriction.
It's a restriction because you have made the choice that it be a
restriction.
As shown in the previous post, using a loop to read all the line, and
appending each segment to an unbounded_string, means the restriction need
not be there. Of course, you may have other reasons for the restriction,
but "size of the internal buffer" doesn't need to be one.
--------------------------------------------------------------------
Matthew Heaney
Software Development Consultant
<mailto:matthew_heaney@acm.org>
(818) 985-1271
next prev parent reply other threads:[~1997-05-19 0:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-05-17 0:00 Text_IO.Get_Line RE Hixon
1997-05-17 0:00 ` Text_IO.Get_Line Robert Dewar
1997-05-19 0:00 ` Text_IO.Get_Line RE Hixon
1997-05-19 0:00 ` Matthew Heaney [this message]
1997-05-22 0:00 ` Text_IO.Get_Line RE Hixon
1997-05-22 0:00 ` Text_IO.Get_Line Nick Roberts
1997-05-25 0:00 ` Text_IO.Get_Line Jerry van Dijk
1997-05-18 0:00 ` Text_IO.Get_Line Matthew Heaney
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox