comp.lang.ada
 help / color / mirror / Atom feed
From: Brian McGuinness <b.mcguinness747@gmail.com>
Subject: Re: Problem with unbounded string input
Date: Thu, 28 Jan 2021 10:58:26 -0800 (PST)	[thread overview]
Message-ID: <900e61fb-dfaf-4955-91a3-90975f205d47n@googlegroups.com> (raw)
In-Reply-To: <05057da7-40d1-46f4-9a95-531c746cb556n@googlegroups.com>

On Wednesday, January 27, 2021 at 6:09:18 PM UTC-5, Shark8 wrote:
> On Wednesday, January 27, 2021 at 12:59:18 PM UTC-7, Brian McGuinness wrote: 
> > I was having trouble reading unbounded strings, so I wrote a short test program and had the same problem. 
> > 
> >
> > When I compile this with gnatmake 8.3.0 under Linux Mint Debian edition 4 and run it, every so often when I type a line and hit Enter there is no response until I hit Enter again, and then everything typed before the first Enter is ignored. The rest of the time the lines I type are read and returned correctly. I am really puzzled by this. Is this a bug in the Ada library or am I doing something wrong?
> I've had this problem before, though it was using normal strings; IIRC the issue is that sometimes there's "stuff" in your input buffer and this can be handled [IIRC] via flush.

Ok.  Thanks for the help.

I used """" because I was thinking of later adding more text between the quotes, but your point is good.

      reply	other threads:[~2021-01-28 18:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-27 19:59 Problem with unbounded string input Brian McGuinness
2021-01-27 21:42 ` Jeffrey R. Carter
2021-01-27 23:09 ` Shark8
2021-01-28 18:58   ` Brian McGuinness [this message]
replies disabled

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