home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!darwin.sura.net!wupost!waikato.ac.nz!aukuni.ac.nz!ecmtwhk
- Newsgroups: comp.lang.fortran
- Subject: recursive I/O
- Message-ID: <1992Jul21.223157.2775@ccu1.aukuni.ac.nz>
- From: ecmtwhk@ccu1.aukuni.ac.nz (Thomas Koenig)
- Date: Tue, 21 Jul 1992 22:31:57 GMT
- Organization: University of Auckland, New Zealand.
- Lines: 16
-
- Is the following legal F77? It works on the UNIX box I'm on at the
- moment, but I can imagine trouble with architectures which do not use
- a stack for argument passing, for example /370.
-
- C This assumes channels 6 and 0 are preconnected
- PROGRAM MAIN
- WRITE (6,*) FCN(2.3)
- END
- FUNCTION FCN(A)
- IF (A.GT.2.) WRITE (0,*) 'Something horrible happened'
- FCN = 2. - A
- END
- --
- Thomas Koenig, ecmtwhk@ccu1.aukuni.ac.nz, ib09@rz.uni-karlsruhe.de
- The joy of engineering is to find a straight line on a double logarithmic
- diagram.
-