comp.lang.ada
 help / color / mirror / Atom feed
From: j.dabel@t-online.de
Subject: Re: Priority of Get() over Put() ? on Mac 10.10.3
Date: Sat, 11 Apr 2015 08:44:48 -0700 (PDT)
Date: 2015-04-11T08:44:48-07:00	[thread overview]
Message-ID: <4305097a-8c61-4e5e-ac7c-a9421547fd87@googlegroups.com> (raw)
In-Reply-To: <cosdjmFakneU1@mid.individual.net>

On Saturday, April 11, 2015 at 1:07:37 PM UTC+2, Niklas Holsti wrote:
> On 15-04-11 12:13 , j.dabel@t-online.de wrote:
> > when running Exercise 4.4 1 "Table_Of_Square_Roots" of Programming in
> > Ada 2012 by John Barnes, I have to type Last_N without showing me
> > first the Put("What is the largest value please ? "). So the Get
> > command takes over the Put command but this makes no sense for a
> > person who doesn't know what is meant.
> 
> What probably happens is that the text in the "Put" call stays in some 
> system or I/O buffer and is not displayed.
> 
> Try adding the call Ada.Text_IO.Flush between the Put and the Get. That 
> should flush out and display the buffered text. Or you can change the 
> Put to a Put_Line, but of course the effect on the screen is a bit 
> different.
> 
> -- 
> Niklas Holsti
> Tidorum Ltd
> niklas holsti tidorum fi
>        .      @       .

Thank you for your help,

Flush didn't help it was Put_Line().
Juergen Dabel
Schrobenhausen


  reply	other threads:[~2015-04-11 15:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-11  9:13 Priority of Get() over Put() ? on Mac 10.10.3 j.dabel
2015-04-11 11:07 ` Niklas Holsti
2015-04-11 15:44   ` j.dabel [this message]
2015-04-12  5:14     ` AdaMagica
2015-04-12  6:11       ` Niklas Holsti
2015-04-12  7:14         ` j.dabel
2015-04-14  6:01         ` AdaMagica
replies disabled

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