comp.lang.ada
 help / color / mirror / Atom feed
From: anon@anon.org (anon)
Subject: Re: Weird string I/O problem
Date: Thu, 04 Dec 2008 00:15:31 GMT
Date: 2008-12-04T00:15:31+00:00	[thread overview]
Message-ID: <DiFZk.53517$_Y1.42261@bgtnsc05-news.ops.worldnet.att.net> (raw)
In-Reply-To: d74c1eb0-676f-43c5-85f4-de82b4c9e581@w35g2000yqm.googlegroups.com

It answers the original poster, That is if one find something they do not like 
in Ada or the RM either work around it or write your own routine. But stop 
complaining about it!

And I did not say MAC. I say OSs that use LF or CR/LF pairing. 

As for you!  You need to learn English. And there are many different ways 
someone can say the same thing.  Just like in programming, there is no 
single way to perform a routine. Some may like the RTL of Ada to do the 
validation, while others prefer the concept of Ravenscar or no RTL.


In <d74c1eb0-676f-43c5-85f4-de82b4c9e581@w35g2000yqm.googlegroups.com>, christoph.grein@eurocopter.com writes:
>On Dec 3, 10:16=A0am, a...@anon.org (anon) wrote:
>> -- For christoph.grein
>> -- =A0 =A0Better re-read RM A.10.7. It does not say what you think it doe=
>s.
>
>??? Hu. I quoted paras (1..3). So what do you think they say?
>
>> -- =A0 =A0Now A.9(8) should be A.10.8. =A0And it says that it is up to th=
>e
>
>Hehe ;-) We're all fond of typos. The correct quote here is A.10(8).
>
>> -- =A0 =A0author's implementation to define the terminators. Normally
>> -- =A0 =A0that is defined by the OS and hardware, but it can be redefined
>> -- =A0 =A0by 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?




  parent reply	other threads:[~2008-12-04  0:15 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
2008-12-03 12:21               ` John B. Matthews
2008-12-04  0:15               ` anon [this message]
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