want to know

richard.r.grady..jr r4 at cbnews.ATT.COM
Fri Aug 18 05:47:07 AEST 1989


In article <31668 at ism780c.isc.com> marv at ism780.UUCP (Marvin Rubenstein) writes:
>In article <1496 at l.cc.purdue.edu> cik at l.cc.purdue.edu (Herman Rubin) writes:
>>
>>Those who remember the old Fortran will know that one normally had a PROGRAM
>>card, which was of the form
>>
>>	PROGRAM NAME(.............)
>>
>
>Herman's recolection of old FORTRAN is different from mine.  The original
>FORTRAN (for the IBM 704) had no user written subroutine facility at all so
>the question of a name was moot.  FORTRAN/2, FORTRAN/4, (and I think
>FORTRAN/66) programs all begin execution with the one and only ANONYMOUS
 ^^^^^^^^^^
>program unit.  [...]

This is getting a bit away from the C language, but...

Control Data's version of FORTRAN/66 *required* a PROGRAM statement.
Furthermore, all I/O files (even standard input and output) had to be
declared in the PROGRAM statement.

          PROGRAM FOO(INPUT,OUTPUT,TAPE1,TAPE2,....)

where TAPE1, TAPE2, etc., corresponded to logical unit 1, 2, etc.
If you didn't declare a file this way, the program would barf.
(If you forgot OUTPUT, the barf was silent, because the complaint
routine couldn't find the file OUTPUT to write on!)

-------------------------------------------------------------------
Dick Grady              r_r_grady at att.com          ...!att!mvuxd!r4 



More information about the Comp.lang.c mailing list