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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,58253cbf46bbb1fc X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!post01.iad01!news.cv.net!not-for-mail Date: Mon, 18 Feb 2008 19:05:22 -0500 From: "John W. Kennedy" User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Automated conversion to C++? References: <47b9e03b$0$2787$4d3efbfe@news.sover.net> In-Reply-To: <47b9e03b$0$2787$4d3efbfe@news.sover.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <47ba1d4f$0$15169$607ed4bc@cv.net> Organization: Optimum Online NNTP-Posting-Host: 68.193.246.216 X-Complaints-To: abuse@cv.net Xref: g2news1.google.com comp.lang.ada:19879 Date: 2008-02-18T19:05:22-05:00 List-Id: Peter C. Chapin wrote: > Larry Kilgallen wrote: > >> How would you write a line that had an ASCII 10 in the middle >> and get back that line that had an ASCII 10 in the middle, as >> you can with the Ada compiler I currently use ? > > Does the Ada standard actually *require* end of line indications to be > represented in the file in a way other than by using a distinguished > character sequence? If it does not require this than it would seem like > a standard implementation could in some cases write one line and then > read back more than one. "The actual nature of terminators is not defined by the language and hence depends on the implementation. Although terminators are recognized or generated by certain of the procedures that follow, they are not necessarily implemented as characters or as sequences of characters. Whether they are characters (and if so which ones) in any particular implementation need not concern a user who neither explicitly outputs nor explicitly inputs control characters. The effect of input (Get) or output (Put) of control characters (other than horizontal tabulation) is not specified by the language." So both Unix-style I/O and IBM-mainframe-style I/O are permitted, just as one would expect in any modern language. -- John W. Kennedy "There are those who argue that everything breaks even in this old dump of a world of ours. I suppose these ginks who argue that way hold that because the rich man gets ice in the summer and the poor man gets it in the winter things are breaking even for both. Maybe so, but I'll swear I can't see it that way." -- The last words of Bat Masterson