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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e2b1bd6557babda6 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-15 11:32:11 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!usenet-fr.net!enst.fr!not-for-mail From: "David C. Hoos" Newsgroups: comp.lang.ada Subject: Re: Terminating a task Date: Tue, 15 Jul 2003 13:30:33 -0500 Organization: ENST, France Message-ID: References: <1ec946d1.0307141545.2175a770@posting.google.com> <5ra8hvkkabsvevc2r0abu4mp71dfochelr@4ax.com> NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1058293879 4626 137.194.161.2 (15 Jul 2003 18:31:19 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Tue, 15 Jul 2003 18:31:19 +0000 (UTC) Cc: Craig Carey To: Return-Path: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: comp.lang.ada mail to news gateway List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:40301 Date: 2003-07-15T13:30:33-05:00 "Craig Carey" wrote in message news:5ra8hvkkabsvevc2r0abu4mp71dfochelr@4ax.com... > > Ada 95 can't read data accurately from the console: (a) Text_IO has an > undefined behaviour on what bounds lines. The Stream_IO package does not > let the standard input be specified. GNAT extensions were not used (i.e. > fread() in Interfaces.C_Streams). What do you mean by "Text_IO has an undefined behaviour on what bounds lines."? The procedures Ada.Text_IO.Get_Line and Ada.Text_IO.Put_Line certainly know what "bounds lines." True, the Stream_IO package does not allow the standard input to be specified, but that's not the proper package to use for dealing with _text_ streams. The package Ada.TextIO.Text_Streams allows one to obtain the stream object corresponding to the standard input -- i.e.: Standard_Input_Stream : Ada.Text_IO.Text_Streams.Stream_Access = Ada.Text_IO.Text_Streams.Stream (Ada.Text_IO.Standard_Input);