comp.lang.ada
 help / color / mirror / Atom feed
From: Niklas Holsti <niklas.holsti@tidorum.invalid>
Subject: Re: Priority of Get() over Put() ? on Mac 10.10.3
Date: Sat, 11 Apr 2015 14:07:34 +0300
Date: 2015-04-11T14:07:34+03:00	[thread overview]
Message-ID: <cosdjmFakneU1@mid.individual.net> (raw)
In-Reply-To: <2bfa2168-9073-45a8-940a-ee13ea0d2493@googlegroups.com>

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
       .      @       .

  reply	other threads:[~2015-04-11 11:07 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 [this message]
2015-04-11 15:44   ` j.dabel
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