comp.lang.ada
 help / color / mirror / Atom feed
From: gressett@iglobal.net
Subject: Re: Newbie Questions about Get, Get_Line
Date: Sun, 31 Dec 2000 02:13:27 -0600
Date: 2000-12-31T02:13:27-06:00	[thread overview]
Message-ID: <98pt4t477fqavihkgfbjioo7peo9vb7f20@4ax.com> (raw)
In-Reply-To: 92l4s4$hjb$1@nnrp1.deja.com

Ted Dennison <dennison@telepath.com> wrote:

>In article <k73r4toon9d6e0oi384t6240d32d7leohc@4ax.com>,
>  gressett@iglobal.net wrote:
>
>> What I would really find useful is a routine that could take a string
>> variable and fill it with terminal input with the following
>> properties:
>>
>> If the user input is shorter that the string variable, it will be
>> padded with blanks.
>
>Ewww. Why would you want that? Its soooo sloppy (not to mention
>wasteful). Plus it would significantly complicate dealing with the
>string later.

It's a fixed-length String variable; I have to pad it with something,
and in this case, the fixed-length string is a good match to the
requirements of the problem being solved. 

The real problem here is that the designers of the Ada.Text_IO package
quit too soon. There should have been an Ada.Interactive_IO which
would deal with more of the problems of screen and Keyboard IO in a
standard way.



  reply	other threads:[~2000-12-31  8:13 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
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 [this message]
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