Re: io-unit has been opened
- From: Dan Nagle <dannagle@xxxxxxxxxxx>
- Date: Mon, 30 Oct 2006 16:49:06 GMT
Hello,
baf wrote:
Richard Maine wrote:baf <baf@xxxxxxxxxxx> wrote:I agree with your analysis in general, but not in this case. If I ask
If it is "illegal" to open the same file twice,It is.
then the Intel Fortran compiler has a bug.That does not follow. There are many, many things that are illegal for
programs to do, but that compilers are not required to enforce. Indeed
that is the case for the large majority of things in the language. Prior
to f90, that was the case for everything in the language - there were no
requirements for compilers to enforce anything. Diagnostics were purely
a quality of implementation matter.
The illegality of multiple simultaneous opens of the same file just
means that the compiler is not required to make it work. It does not
mean that the compiler is required to make it not work.
for strict, standards compliance checking from the compiler, and if
opening a file twice with two different units numbers is not allowed by
the F90 standard, then the compiler should indicate that an error has
occurred.
Does the standard specifically say that this action is not allowed?
Yes. Please see _9.4.3 Connection of a file to a unit_ in the standard.
The compiler is required to diagnose failure to adhere to the numbered
syntax rules. It is not required to emit run-time code to catch
errors during execution.
Please see _1.7.1 Applicability of requirements_, specifically
the sentence "Except where stated otherwise,
such requirements and prohibitions apply to programs rather
than processors."
--
Cheers!
Dan Nagle
Purple Sage Computing Solutions, Inc.
.
- Follow-Ups:
- Re: io-unit has been opened
- From: baf
- Re: io-unit has been opened
- References:
- io-unit has been opened
- From: Mike
- Re: io-unit has been opened
- From: Brooks Moses
- Re: io-unit has been opened
- From: baf
- Re: io-unit has been opened
- From: Richard Maine
- Re: io-unit has been opened
- From: baf
- io-unit has been opened
- Prev by Date: Re: Help needed
- Next by Date: Re: Keywords: UPCASE, downcase or Capitalized?
- Previous by thread: Re: io-unit has been opened
- Next by thread: Re: io-unit has been opened
- Index(es):
Relevant Pages
|
|