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!news3.google.com!news.germany.com!feeder.erje.net!nuzba.szn.dk!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Automated conversion to C++? Date: Mon, 18 Feb 2008 17:33:49 -0600 Organization: Jacob's private Usenet server Message-ID: References: NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: jacob-sparre.dk 1203377667 2694 69.95.181.76 (18 Feb 2008 23:34:27 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Mon, 18 Feb 2008 23:34:27 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1914 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1914 Xref: g2news1.google.com comp.lang.ada:19877 Date: 2008-02-18T17:33:49-06:00 List-Id: "Larry Kilgallen" wrote in message news:gAi3fvx3BIHT@eisner.encompasserve.org... > In article , Maciej Sobczak writes: ... > > What is wrong with ASCII 10 and 12 codes (decimal)? > > How would those not be "inline reserved characters" ? > > 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 ? Really? I'm not aware of any Ada compilers (for any platform) that support that; if you expect that to work, it is not portable Ada! Specifically, A.10(8) says "The effect of input (Get) or output (Put) of control characters (other than horizontal tabulation) is not specified by the language." "Unspecified" in language terms means not only that a compiler can do what it pleases, but also that there is no requirement that it tell you what it does. The result is that doing I/O of control characters through Text_IO is not something that is done in a portable Ada program. (It might work on a particular Ada compiler, but that is irrelevant.) > I have no doubt that with Posix one could write a subset of Ada, > but that was not the question posed. There is no such requirement in Ada, so whether or not you can do it in POSIX (or in Windows, for that matter), is irrelevant. Randy.