🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.f77
Article #289

Re: Minor I/O bug

#289
From: Alan T. Bowler [SDG]
Date: Sat, 04 Jan 1986 00:53
26 lines
1763 bytes
In article <247@xanth.UUCP> tadguy@xanth.UUCP (Tad Guy) writes:
>In article <3117@sdcc3.UUCP> Donald R. Fredkin (drf@sdcc3.UUCP) writes:
>>The f77 compiler complains of a syntax error at the first line of the
>>following program (4.2bsd on VAX, v2.0 on SUN):
>>
>>	write(6,10) (-1)
>>10	format(i2)
>>	end
>>
>>Removal of the parentheses around -1 cures the problem. This seems to violate
>>section 12.8.2.2 of ANSI X3.9-1978, which states that an <output list item>
>>can be "(5) Any other expression ..."
>
>I haven't found a fortran compiler yet that will accept that line.

I suggest you have not looked very hard.  The IBM/370 and Honeywell DPS-8
Fortran 77 compilers work just fine.  Other have pointed out that the 
compiler from other manufacturers work just fine.
>
>A solution I was told about when I used WATFIV on an IBM 370 was to do this:

WATFIV never claimed to be Fortran 77, just an extension of Fortran IV (alias
66) and as such was not required to accept this.  The correct way arround
it, if you were working with Fortran compilers that conform to the 1966
standard, is to assign to a variable and use the variable in the WRITE
statement.
Technical Details
Message-ID: <671@watmath.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!atbowler
References: <3117@sdcc3.UUCP> <247@xanth.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site watmath.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!atbowler
From: atbowler@watmath.UUCP (Alan T. Bowler [SDG])
Newsgroups: net.lang.f77
Subject: Re: Minor I/O bug
Message-ID: <671@watmath.UUCP>
Date: Fri, 3-Jan-86 19:53:27 EST
Article-I.D.: watmath.671
Posted: Fri Jan  3 19:53:27 1986
Date-Received: Sat, 4-Jan-86 04:42:40 EST
References: <3117@sdcc3.UUCP> <247@xanth.UUCP>
Reply-To: atbowler@watmath.UUCP (Alan T. Bowler [SDG])
Organization: U of Waterloo, Ontario
Lines: 26