This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: namelist with fortran77 ?
- From: Paul Thomas <paulthomas2 at wanadoo dot fr>
- To: Dominique Dhumieres <dominiq at lps dot ens dot fr>
- Cc: jvdelisle at verizon dot net, fortran at gcc dot gnu dot org, j dot g dot karssenberg at student dot utwente dot nl
- Date: Sat, 05 Aug 2006 18:36:04 +0200
- Subject: Re: namelist with fortran77 ?
- References: <20060805095542.18C3B5BB90@mailhost.lps.ens.fr>
Dominique,
I posted this as pr28607 and then found the relevant standard sections. This is
not a bug. F95 Standard requires quotes or apostrophes on input to avoid
ambiguity and the DELIM specifier is ignored for inputs.
Note 10.33, in 10.9.1.3 says:
"A character sequence corresponding to a namelist input item of
character data type shall be delimited either with apostrophes or
quotes. The delimiter is required to avoid ambiguity between
undelimited character sequences and object names. The value of the
DELIM = specifier, if any, in the OPEN statement for an external file is
ignored during namelist input (9.3.4.9)."
which is what Jerry amply paraphrased above. The reason that I have
quoted directly is to amplify that this is a standard requirement and
not something we have done for the ease of implementation. We did
discuss how this might be relaxed and concluded that it would be
difficult going on impossible and certainly not worth a non-standard
feature.
Cheers
Paul