Van Snyder writes:
> ...a curious asymmetry in the current draft of the
> Fortran 2000 standard: ACHAR(10) causes new-line during formatted stream
> output, but new-line is not specified to cause ACHAR(10) (or anything else)
> during formatted stream input. I have no idea what is expected to happen if
> new-line is represented by some junk in a record-mangler database (out-of-
> band signalling, to use Malcolm's term). Since the current draft of the
> Fortran 2000 standard is silent on this issue,
I don't understand this claim. The standard has many words about what
happens at an end-of-record on input. I'd worry much more that it has
so many words in so many places that they might be inconsistent
somewhere instead of that it says nothing.
Perhaps something is confused here by the terminology. In the current
f2k draft, new-line *IS* the achar(10) internal representation. It
isn't the external representation. So you don't get translation of
achar(10) to new-line. You get translation of achar(10) (also called
new-line) to cause record termination and starting of a new record.
We don't say what record termination looks like on the actual file.
Might actually be the same new-line character. Might be some other
form of record terminator character(s). It could well be something in
your external database.
We say an awful lot about what happens at record boundaries on input.
See all the stuff on pad=, eor=, and advance=, which directly apply.
What you have is a plain old ordinary record boundary, the same as any
other record boundary. You shouldn't be able to tell whether it
resulted from a "/" edit descriptor or writing a achar(10) in A
format.
True you don't get a translation of the record boundary to achar(10),
but the standard *DOES* say what happens. It doesn't just leave it
processor-dependent (or I'm very confused).
P.S. It can take a little work to find the stuff about translating
achar(10). Took me a while anyway. It's in 10.6.3 on character
editing.
--
Richard Maine | Good judgment comes from experience;
[log in to unmask] | experience comes from bad judgment.
| -- Mark Twain
|