comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Automated conversion to C++?
Date: Mon, 18 Feb 2008 17:33:49 -0600
Date: 2008-02-18T17:33:49-06:00	[thread overview]
Message-ID: <fpd4m2$2k6$1@jacob-sparre.dk> (raw)
In-Reply-To: gAi3fvx3BIHT@eisner.encompasserve.org

"Larry Kilgallen" <Kilgallen@SpamCop.net> wrote in message
news:gAi3fvx3BIHT@eisner.encompasserve.org...
> In article
<bc0f9b78-814e-4599-86cf-6ddd461f1791@e60g2000hsh.googlegroups.com>, Maciej
Sobczak <see.my.homepage@gmail.com> 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.





  parent reply	other threads:[~2008-02-18 23:33 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-15 13:33 Automated conversion to C++? Jacob Sparre Andersen
2008-02-15 14:11 ` Robert A Duff
2008-02-15 19:12   ` Jacob Sparre Andersen
2008-02-16  0:44     ` Robert A Duff
2008-02-17 22:31       ` Phaedrus
2008-02-18  0:59         ` Larry Kilgallen
2008-02-18  7:14         ` Martin Krischik
2008-02-19  1:04           ` Phaedrus
2008-02-19 17:01             ` Martin Krischik
2008-02-18  7:10       ` Martin Krischik
2008-02-18  7:08   ` Martin Krischik
2008-04-03  9:48   ` vindhya
2008-04-03 13:27     ` Robert A Duff
2008-02-15 18:24 ` Jeffrey R. Carter
2008-02-15 20:35   ` Maciej Sobczak
2008-02-16  4:52     ` Jeffrey R. Carter
2008-02-16  7:40       ` Pascal Obry
2008-02-16 12:12       ` Peter C. Chapin
2008-02-16 13:41         ` Larry Kilgallen
2008-02-16 16:35           ` Maciej Sobczak
2008-02-16 17:12             ` Jeffrey R. Carter
2008-02-16 21:23               ` Maciej Sobczak
2008-02-16 22:11                 ` Jeffrey R. Carter
2008-02-19 16:46                   ` Jacob Sparre Andersen
2008-02-17 12:41             ` Larry Kilgallen
2008-02-17 18:57               ` Peter C. Chapin
2008-02-17 19:50                 ` Larry Kilgallen
2008-02-18 14:43                   ` Maciej Sobczak
2008-02-18 19:17                     ` Larry Kilgallen
2008-02-18 19:44                       ` Peter C. Chapin
2008-02-19  0:05                         ` John W. Kennedy
2008-02-19  7:29                         ` Jean-Pierre Rosen
2008-02-18 20:01                       ` Jeffrey R. Carter
2008-02-18 23:33                       ` Randy Brukardt [this message]
2008-02-20  1:53                     ` Subject: POSIX , Ada, Line Feeds, etc (was Automated conversion to C++) KarlNyberg
2008-02-21  7:34                       ` Subject: POSIX , Ada, Line Feeds, etc Jacob Sparre Andersen
2008-02-16 17:09         ` Automated conversion to C++? Jeffrey R. Carter
2008-02-16 16:31       ` Maciej Sobczak
2008-02-16 17:20         ` Jeffrey R. Carter
2008-02-16 13:21   ` Jacob Sparre Andersen
2008-02-16 17:15     ` Jeffrey R. Carter
2008-02-16 13:43 ` Dr. Adrian Wrigley
2008-02-16 16:42   ` Jacob Sparre Andersen
2008-02-16 16:58     ` Martin
2008-02-21  7:14       ` Jacob Sparre Andersen
2008-02-16 21:43     ` Maciej Sobczak
2008-02-16 22:04       ` Jeffrey R. Carter
2008-02-16 18:27   ` tmoran
replies disabled

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