Van Snyder wrote:
> > >
> > > A. open(unit=1,file='junk',form='formatted')
> > > inquire(1,unformatted=yesno)
> > >
> > > B. open(1,file='junk',form='unformatted')
> > > inquire(1,formatted=yesno)
> The purpose of these inquiries, at least when used for
> "inquire by file," was to ask the file cataloging system
> whether the modes are allowed. Remember that VMS and other
> systems have far fancier file catalogs than Unix or Windoze.
> One can create a file, or at least its entry in the catalog,
> specifying all kinds of stuff about the file, long before the
> Fortran program lurches into execution.
True enough, but this is "inquire by unit", which inquires about "the
connection to the unit". I'll agree that it seems a bit odd to ask if
FORMATTED is an allowed value for a unit connected for unformatted I/O,
but this behavior has been in many of these compilers since F77. I'd
therefore offer the opinion that if the majority of "mainstream"
compilers agree on which way to lean, it makes sense to lean the same
way.
Steve Lionel
Developer Products Division
Intel Corporation
Nashua, NH
|