From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: Priority of Get() over Put() ? on Mac 10.10.3 Date: Sat, 11 Apr 2015 14:07:34 +0300 Organization: Tidorum Ltd Message-ID: References: <2bfa2168-9073-45a8-940a-ee13ea0d2493@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net BdaPG5HwedfkejD5MJ4AyQAx7froULyH/vSp5FwNntDh4kYgL2 Cancel-Lock: sha1:tlKLBs684hEpYzRfr9M75UjltBo= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 In-Reply-To: <2bfa2168-9073-45a8-940a-ee13ea0d2493@googlegroups.com> Xref: news.eternal-september.org comp.lang.ada:25513 Date: 2015-04-11T14:07:34+03:00 List-Id: 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 . @ .