Bruce,
You obviously use NAMELIST, or like it, or both. Your comments taking me to task made me do several bits of research to see if my opinion was unsupportable. In FTN95, as the CHM file tells us:
'Although not described here, namelist input has been extended to allow comments to follow one or more object name / value pairs on a line. This allows users to document how a namelist input file is structured, which values are valid, and the meaning of certain values. Each line in the namelist input may contain information about name / value pairs. This additional information may improve the documentation of the input file.'
I couldn't actually remember the precise syntax for namelist (obviously, as I don't use it), so I looked back at the user manuals for several earlier versions of fortran I have used, and trawled through a number of books. I had a recollection that namelist was not widely supported. It is now too difficult to check various mainframes, but I started to look through the manuals for some old PC compilers. The manual for FTN77/386 does not mention it. Nor Digital Research Fortran 77, Nor MS Fortran 77 version 1.3, 3.1 or 5.1. Nor Prospero Fortran for GEM ... It is in Fortran Powerstation 1.0 (which is fortran-77), although there it has bizarre behaviour, possibly (depending on compiler settings) truncating the namelist names to 6 characters. Finally finding namelist stopped me from researching several other compilers' manuals tonight.
Turning to my textbook collection, I had a look in Metcalf's Effective Fortran 77, which doesn't mention namelist. I looked in Metcalf's Fortran Optimization - no namelist. In Kruger's Efficient Fortran Programming - no namelist. It does get a little over a page in Metcalf and Reid's Fortran 8x Explained, although that is not a user manual, and Fortran-90 had some differences when it eventually came out. I began to wonder if it was new to fortran-90. But I couldn't credit that, as I clearly remembered reading it in the CDC-6400 manual when even fortran-77 was esoteric, and had a vague memory of seeing it in McCracken, and in a Fortran-66 compiler I had with my first PC. Finally, in Willé's Advanced Scientific Fortran I found the answer. In the half-page devoted to namelist, I read 'Another useful addition to Fortran 90 is the NAMELIST construct', and later 'The reader should note that, although supported by many Fortran 77 compilers, the exact form of the records read and written by NAMELIST was not standardised until Fortran 90'. The 'many' presumably didn't include most of those for the PC!
At least now I know the underlying reason for my prejudice: namelist wasn't always available, and even when it was, it was non-standard. Since fortran-90, it has been standard, which I suppose has given me over a decade and a half to find out about it and change my mind. But where on earth do I find out about FTN95's implementation, or its extensions so tantalisingly described in the quote above, so that discovering the truth I may recant? (Please don't point me at the ANSI standard. That too is not a user guide).
So, my flip remark about namelist being daft relates to the many years when it was non-standard, or not included in some compilers. Things are better now ... Oh Dear ... namelist in FTN95 is also non-standard!
Returning to those things scheduled for termination, am I not correct in thinking that the list is ever-changing? Progress is one thing, but backwards compatibility is often useful. I could give many examples both inside and outside the computing field. To paraphrase a well known saying 'if it ain't broke, don't break it'!
Best regards
Eddie
PS. So how about posting a code snippet?