NAMELIST vs. bsd f77 - the battle continues

Jerry Berkman jerry at violet.berkeley.edu
Sat Mar 18 17:37:51 AEST 1989


In article <1616 at csd4.milw.wisc.edu> jgd at csd4.milw.wisc.edu (John G Dobnick,EMS E380,4142295727,) writes:
> ...
>The manuals and documents for the f77 compiler discuss the NAMELIST feature,
>leading one to believe the compiler supports it.  However, the compiler
>does *not* recognize NAMELIST.  Examination of the compiler reveals why the
>parser does not recognize NAMELIST -- that particular code is specifically
>turned off.  As far as I can tell from a cursory examination, the remainder
>of f77 implements NAMELIST.
>-- 
>John G Dobnick
>Computing Services Division @ University of Wisconsin - Milwaukee

As I recall, originally the f77 compiler compiled code for namelist, but
there was no code in the library, so you got a loading error.  So the
parser was changed to not compile code for namelist.  Then in July, 1985,
I added code for namelist I/O to the library, and the code in the compiler
to compile namelist was enabled, and debugged (it had never been tested).

Just to check, I just ran the following code:

	integer i(3)
	namelist /nnn/ i, j, k
	data i/ 100,200,300 /, j/100/, k/-99/
	read (*, nnn )
	print nnn
	end

with the data:

 &nnn j=13, i(2)=-88 &end

on monet, a 4.3 BSD VAX system at Berkeley, and it worked fine.

The problem must be that you have an old copy of the software and
new documentation.
	- Jerry Berkman, U.C. Berkeley, Central Computing Services
	  jerry at violet.berkeley.edu



More information about the Comp.unix.questions mailing list