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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,d54559bde05f5bb8 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!news2!wn11feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!53ab2750!not-for-mail Newsgroups: comp.lang.ada From: anon@anon.org (anon) Subject: Re: Weird string I/O problem Reply-To: no to spamers (No@email.given.org) References: X-Newsreader: IBM NewsReader/2 2.0 Message-ID: Date: Thu, 04 Dec 2008 00:15:31 GMT NNTP-Posting-Host: 12.64.48.248 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1228349731 12.64.48.248 (Thu, 04 Dec 2008 00:15:31 GMT) NNTP-Posting-Date: Thu, 04 Dec 2008 00:15:31 GMT Organization: AT&T Worldnet Xref: g2news1.google.com comp.lang.ada:2865 Date: 2008-12-04T00:15:31+00:00 List-Id: 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 , 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?