comp.lang.ada
 help / color / mirror / Atom feed
From: christoph.grein@eurocopter.com
Subject: Re: Weird string I/O problem
Date: Wed, 3 Dec 2008 02:42:59 -0800 (PST)
Date: 2008-12-03T02:42:59-08:00	[thread overview]
Message-ID: <d74c1eb0-676f-43c5-85f4-de82b4c9e581@w35g2000yqm.googlegroups.com> (raw)
In-Reply-To: _7sZk.171628$Mh5.91283@bgtnsc04-news.ops.worldnet.att.net

On Dec 3, 10:16 am, a...@anon.org (anon) wrote:
> -- For christoph.grein
> --    Better re-read RM A.10.7. It does not say what you think it does.

??? Hu. I quoted paras (1..3). So what do you think they say?

> --    Now A.9(8) should be A.10.8.  And it says that it is up to the

Hehe ;-) We're all fond of typos. The correct quote here is A.10(8).

> --    author's implementation to define the terminators. Normally
> --    that is defined by the OS and hardware, but it can be redefined
> --    by the author code.

What do you mean with "author"? Who is the author here, the
implementor (the programmer definitely cannot redefine them)? Of
course terminators are implementation defined. This is why there are
End_of_Line and End_of_Page queries. So if you want to write portable
code, use those, not CR/LF etc. This will simplify the code.

BTW: Doesn't Mac use only CR for End_of_Line? Then anon's code will
fail again.

anon: I didn't doubt that you are able to write working code. But what
do you want to demonstrate with this example? It simply does what
Get_Line does, so what is the advantage of your code? OK, it keeps all
control characters (except CR and LF and NUL) that might be present in
the input, but ruins the line and page counts that Text_IO maintains.
So what?



  reply	other threads:[~2008-12-03 10:42 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-26  5:52 Weird string I/O problem Jerry
2008-11-26  7:24 ` christoph.grein
2008-11-26  7:38   ` christoph.grein
2008-11-26  8:25     ` Dmitry A. Kazakov
2008-11-26  9:07   ` Jean-Pierre Rosen
2008-11-26 15:21     ` John McCormick
2008-11-26 15:56     ` Adam Beneschan
2008-11-27 10:13       ` Jean-Pierre Rosen
2008-12-01 16:17         ` Adam Beneschan
2008-11-27  4:46 ` Jerry
2008-11-27 10:27   ` Jean-Pierre Rosen
2008-12-01 19:47 ` anon
2008-12-02  5:44   ` christoph.grein
2008-12-02  6:55     ` anon
2008-12-02  7:53       ` christoph.grein
2008-12-02 16:39         ` Adam Beneschan
2008-12-03  9:16           ` anon
2008-12-03 10:42             ` christoph.grein [this message]
2008-12-03 12:21               ` John B. Matthews
2008-12-04  0:15               ` anon
2008-12-04  7:31                 ` christoph.grein
2008-12-04  7:56                   ` Ludovic Brenta
2008-12-04  8:46                     ` Georg Bauhaus
2008-12-03 11:35             ` stefan-lucks
2008-12-04  0:27               ` anon
2008-12-04  8:58                 ` stefan-lucks
2008-12-04 22:54                   ` anon
2008-12-05  9:06                     ` Georg Bauhaus
replies disabled

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