comp.lang.ada
 help / color / mirror / Atom feed
From: "John W. Kennedy" <jwkenne@attglobal.net>
Subject: Re: Automated conversion to C++?
Date: Mon, 18 Feb 2008 19:05:22 -0500
Date: 2008-02-18T19:05:22-05:00	[thread overview]
Message-ID: <47ba1d4f$0$15169$607ed4bc@cv.net> (raw)
In-Reply-To: <47b9e03b$0$2787$4d3efbfe@news.sover.net>

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



  reply	other threads:[~2008-02-19  0:05 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 [this message]
2008-02-19  7:29                         ` Jean-Pierre Rosen
2008-02-18 20:01                       ` Jeffrey R. Carter
2008-02-18 23:33                       ` Randy Brukardt
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