Sujet : Re: The joy of FORTRAN
De : peter_flass (at) *nospam* yahoo.com (Peter Flass)
Groupes : alt.folklore.computers comp.os.linux.miscDate : 05. Mar 2025, 20:42:34
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <2103982534.762895612.184039.peter_flass-yahoo.com@news.eternal-september.org>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
User-Agent : NewsTap/5.3.1 (iPad)
Lawrence D'Oliveiro <
ldo@nz.invalid> wrote:
On Tue, 4 Mar 2025 11:44:30 -0700, Peter Flass wrote:
The Natural Philosopher <tnp@invalid.invalid> wrote:
fprintf/sprintf doesn't take a structure as an argument.
Too bad. PL/I GET and PUT can operate on arrays and structures.
PL/I originated an in era which didn’t have the concept of stream-based
I/O.
Unless your definition differs from mine, PL/I GET and PUT are literally
called “stream I/O” statements. They have no concept of record boundaries.
My first problem learning the language was “I just want to read one card,
how do I do that?” It’s not as simple as FORTRAN. Finally I settled using
“record I/O” (READ statement) to read exactly 80 characters. (GET SKIP can
also do this.)
-- Pete