Re: closing unit=5 and unit=6 and print *
- From: glen herrmannsfeldt <gah@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 29 Aug 2006 16:55:17 +0000 (UTC)
Richard E Maine <nospam@xxxxxxxxxxxxx> wrote:
(big snip)
Hmm. In reading f77, I see a further subtlety in that f77 says that *(snip)
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.
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(snip)
correspond to more than one external unit?
ANSWER:(snip)
2. No.
The 'or' being important, such that input and output can have
separate units, but only one each.
-- glen
.
- Follow-Ups:
- References:
- closing unit=5 and unit=6 and print *
- From: Dylan Sung
- Re: closing unit=5 and unit=6 and print *
- From: Tim Prince
- Re: closing unit=5 and unit=6 and print *
- From: Richard E Maine
- closing unit=5 and unit=6 and print *
- Prev by Date: Re: closing unit=5 and unit=6 and print *
- Next by Date: Re: closing unit=5 and unit=6 and print *
- Previous by thread: Re: closing unit=5 and unit=6 and print *
- Next by thread: Re: closing unit=5 and unit=6 and print *
- Index(es):