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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.70.96.237 with SMTP id dv13mr8403874pdb.2.1428767088463; Sat, 11 Apr 2015 08:44:48 -0700 (PDT) X-Received: by 10.140.27.130 with SMTP id 2mr90498qgx.6.1428767088205; Sat, 11 Apr 2015 08:44:48 -0700 (PDT) Path: border1.nntp.dca1.giganews.com!nntp.giganews.com!l13no3973386iga.0!news-out.google.com!a41ni61qgf.1!nntp.google.com!j5no909375qga.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 11 Apr 2015 08:44:48 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=87.150.217.107; posting-account=2U7CXQoAAAA3Qr8aftwFCDLALPlYn5Qo NNTP-Posting-Host: 87.150.217.107 References: <2bfa2168-9073-45a8-940a-ee13ea0d2493@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <4305097a-8c61-4e5e-ac7c-a9421547fd87@googlegroups.com> Subject: Re: Priority of Get() over Put() ? on Mac 10.10.3 From: j.dabel@t-online.de Injection-Date: Sat, 11 Apr 2015 15:44:48 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: number.nntp.giganews.com comp.lang.ada:192821 Date: 2015-04-11T08:44:48-07:00 List-Id: 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