* INFO-ADA_REQUEST
@ 1992-12-17 1:51 mvensky
0 siblings, 0 replies; only message in thread
From: mvensky @ 1992-12-17 1:51 UTC (permalink / raw)
I am having a tiny problem with Ada's SEQUENTIAL_IO. I am currently writing
a utility to process sequential tapes written by FORTRAN 77 routines. The recor
d
formats are very well described. However they are heterogeneous, that is they
consist of one hollerith character, followed by an integer, followed by several
more hollerith characters and terminated by a vector of reals, aka floats in Ad
a
. How do I use Ada's strong typing to describe abstract data objects while
reading in this file. If I read the data in using say a word-aligned vector of
floats, I can do some unchecked conversion. This will work but does not seem to
be very clean or elegant. Other possible declarations might cause the dreaded
"DATA_ERROR" exception to be raised.
These records were originally written as unformatted FORTRAN writes. They will
read, fortunately perhaps, by Ada written for the same machine (a Cyber).
I would truely appreciate any insight into how to solve this.
Michael J. Vensky
Edwards Air Force Base
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1992-12-17 1:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1992-12-17 1:51 INFO-ADA_REQUEST mvensky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox