Re: closing unit=5 and unit=6 and print *



Richard E Maine <nospam@xxxxxxxxxxxxx> wrote:
(big snip)

Hmm. In reading f77, I see a further subtlety in that f77 says that *
identifies a (singular) unit, while f95 says that it identifies units
(plural - different for input and output). The formal interp is about
f95. I suppose that this difference does allow some possible wiggle room
to argue that f77 might have been different. Oh well; you aren't going
to get a formal interp on f77 any more.
(snip)

This reminds me that some DEC compilers, with unit 5 and 6
both specified as the terminal, would allow either input or
output on either unit. I believe they were unbuffered so there
wasn't any problem mixing them, but I am not sure about that.

I do know of programs using 5 for both terminal input and output.

2. Can the I/O unit identified by an asterisk for input or output
correspond to more than one external unit?
(snip)

ANSWER:
(snip)

2. No.

The 'or' being important, such that input and output can have
separate units, but only one each.

-- glen
.