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.3 required=5.0 tests=BAYES_00,INVALID_MSGID,XPRIO autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a8525c0786dd76cb,start X-Google-Attributes: gid103376,public From: "David C. Hoos, Sr." Subject: Possible gnat and ObjectAda bugs? Date: 2000/11/25 Message-ID: <9VPT5.39609$A2.8013565@newsrump.sjc.telocity.net>#1/1 X-Deja-AN: 697597892 Content-Transfer-Encoding: 7bit X-Priority: 3 Content-Type: text/plain; charset="Windows-1252" X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Abuse-Info: Please forward ALL headers when reporting abuse. X-Complaints-To: abuse@telocity.net X-Trace: MzEgTm9BdXRoVXNlciAlRUxPQ0lUKC1SRUFERVJTIDIxNi4yMjcuRTcuNDkgIFNhdCwgMjUgTm92!FjIwMDBRMDY6MjA6NTMgUFNU X-MSMail-Priority: Normal MIME-Version: 1.0 NNTP-Posting-Date: Sat, 25 Nov 2000 06:20:53 PST Newsgroups: comp.lang.ada Date: 2000-11-25T00:00:00+00:00 List-Id: The code at the end of this message produces strange results with GNAT 3.13p, and even more bizarre results with ObjectAda 7.1: What is strange is that when Standard Input is from the keyboard, the program does not enter the loop until the enter key has been pressed. Is this a bug, or am I missing something here? with Ada.Text_IO; procedure Echo is C : Character; begin while not Ada.Text_IO.End_Of_File (Ada.Text_IO.Current_Input) loop Ada.Text_IO.Put_Line (Ada.Text_IO.Standard_Error, "Waiting for character..."); Ada.Text_IO.Get_Immediate (C); Ada.Text_IO.Put_Line (Ada.Text_IO.Standard_Error, "Got character at position" & Integer'Image (Character'Pos (C))); Ada.Text_IO.Put (Ada.Text_IO.Current_Output, C); end loop; end Echo;