comp.lang.ada
 help / color / mirror / Atom feed
From: "David C. Hoos" <david.c.hoos.sr@ada95.com>
To: <comp.lang.ada@ada.eu.org>
Cc: Craig Carey <research@ijs.co.nz>
Subject: Re: Terminating a task
Date: Tue, 15 Jul 2003 13:30:33 -0500
Date: 2003-07-15T13:30:33-05:00	[thread overview]
Message-ID: <mailman.11.1058293867.24167.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: 5ra8hvkkabsvevc2r0abu4mp71dfochelr@4ax.com

"Craig Carey" <research@ijs.co.nz> wrote in message
news:5ra8hvkkabsvevc2r0abu4mp71dfochelr@4ax.com...
>
<snip>
> 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);




  reply	other threads:[~2003-07-15 18:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-12 14:03 Terminating a task kat-Zygfryd
2003-07-12 14:37 ` kat-Zygfryd
2003-07-14  9:34   ` Craig Carey
2003-07-14 23:45     ` Matthew Heaney
2003-07-15 17:49       ` Craig Carey
2003-07-15 18:30         ` David C. Hoos [this message]
2003-07-16  5:26         ` Matthew Heaney
2003-07-15 22:37       ` Robert I. Eachus
2003-07-16  5:00         ` Matthew Heaney
2003-07-16 18:19           ` Robert I. Eachus
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox