comp.lang.ada
 help / color / mirror / Atom feed
* Sequential_IO Data Portability
@ 2000-01-25  0:00 Nick Roberts
  2000-01-27  0:00 ` Robert A Duff
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Nick Roberts @ 2000-01-25  0:00 UTC (permalink / raw)


A question was asked in GNAT chat recently as to (I hope I paraphrase
closely enough) whether, in general, the data written, via Sequential_IO, by
a brand of Ada compiler for one machine/OS target can be expected to be read
by a program, using the same type and Sequential_IO, compiled by the same
brand of compiler, but for a different target.

I would suggest that the general answer to the question must be 'no', but
that it will be 'yes' in most practical cases. In particular, I would expect
most sensible (professional?) compilers to include no 'dope' in a file
written by Sequential_IO for a type that is definite.

I would suggest that all compilers should include in their documentation the
exact format and meaning of all 'dope' (hidden) data in all I/O facilities
it comes with (I think RM95 M(69) implies this, but only very vaguely, and
Annex M is not normative). Some effort to standardise on this dope data
might also be worthwhile, perhaps?

I think the next Ada revision should make an effort to enforce a level of
documentation. Of course no automated tests could be used to verify this,
but human-level verification is perfectly practical. I'm not advocating a
densely beaurocratic approach.

--
Nick Roberts
http://www.adapower.com/lab/adaos







^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2000-02-01  0:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-01-25  0:00 Sequential_IO Data Portability Nick Roberts
2000-01-27  0:00 ` Robert A Duff
2000-01-28  0:00 ` Thierry Lelegard
2000-01-31  0:00 ` Tony Matthews
2000-01-31  0:00   ` Ted Dennison
2000-02-01  0:00   ` Jean-Pierre Rosen
2000-02-01  0:00     ` Tony Matthews
2000-02-01  0:00   ` Andy
2000-02-01  0:00     ` Tony Matthews
2000-01-31  0:00 ` Tony Matthews

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