comp.lang.ada
 help / color / mirror / Atom feed
From: eachus@spectre.mitre.org (Robert I. Eachus)
Subject: Re: Ada95 Streams Question
Date: 1996/06/18
Date: 1996-06-18T00:00:00+00:00	[thread overview]
Message-ID: <EACHUS.96Jun18144737@spectre.mitre.org> (raw)
In-Reply-To: 009A400CB5CAE623.78BE@smcsr3.smcs.se.baesema.co.uk


In article <009A400CB5CAE623.78BE@smcsr3.smcs.se.baesema.co.uk> Chris.Morgan@BAESEMA.CO.UK writes:

   Chris.Morgan@BAESEMA.CO.UK asked:

  > I have a question about Ada95 stream implementations. I mentioned
  > this work a little while back in response to a request for Ada95
  > success stories, but now I'm feeling a little unsettled by
  > accusations of being a hacker!...

  > How likely is it that the GNAT (or some other Ada95 compiler)
  > implementation of Ada stream_io would arbitrarily break this
  > arrangement in future? I am told that the in-stream representation
  > is only recommended to conform to the in-memory, but what are the
  > actual chances of some implementation not following this advice?

    I think that in your situation, the chances are good that it will
always work, but you are taking a chance, and it is probably the first
place to look for trouble if you install a new compiler version, etc.

  > Am I really relying entirely on a pure coincidence that the C++
  > and the Ada95 definitions can work together, or is it in fact the
  > only sensible scheme?

    If the Ada and C++ are on the same processor architecture, you are
pretty safe.  If they can be on different processors, especially
processors with different bit or byte orientations, all bets are off.
In those cases I have used RPC routines to maintain architecture
independence.

--

					Robert I. Eachus

with Standard_Disclaimer;
use  Standard_Disclaimer;
function Message (Text: in Clever_Ideas) return Better_Ideas is...




  reply	other threads:[~1996-06-18  0:00 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-06-17  0:00 Ada95 Streams Question Chris.Morgan
1996-06-18  0:00 ` Robert I. Eachus [this message]
1996-06-19  0:00 ` Samuel Tardieu
1996-06-20  0:00   ` Robert Dewar
  -- strict thread matches above, loose matches on Subject: below --
1996-06-23  0:00 Robert Dewar
1996-06-24  0:00 ` michael
1996-06-24  0:00   ` Robert Dewar
1996-06-28  0:00     ` michael
1996-06-28  0:00       ` Robert Dewar
1996-07-01  0:00         ` Laurent Pautet
1996-07-01  0:00           ` Robert Dewar
1996-06-28  0:00     ` Robert A Duff
1996-06-30  0:00       ` Robert Dewar
1996-07-02  0:00     ` sam
1996-06-24  0:00   ` Laurent Pautet
1996-06-25  0:00   ` Theodore E. Dennison
1996-06-24  0:00 Chris.Morgan
replies disabled

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