home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / fortran / 3157 < prev    next >
Encoding:
Internet Message Format  |  1992-08-25  |  1.2 KB

  1. Path: sparky!uunet!gatech!rpi!uwm.edu!ogicse!mintaka.lcs.mit.edu!ai-lab!life.ai.mit.edu!burley
  2. From: burley@geech.gnu.ai.mit.edu (Craig Burley)
  3. Newsgroups: comp.lang.fortran
  4. Subject: Re: Does your f77 compiler accepts this?
  5. Message-ID: <BURLEY.92Aug25163820@geech.gnu.ai.mit.edu>
  6. Date: 25 Aug 92 20:38:20 GMT
  7. Article-I.D.: geech.BURLEY.92Aug25163820
  8. References: <2873@tansei1.tansei.cc.u-tokyo.ac.jp> <92237.181234KGZXK@ASUACAD.BITNET>
  9. Sender: news@ai.mit.edu
  10. Organization: Free Software Foundation 545 Tech Square Cambridge, MA 02139
  11. Lines: 22
  12. In-reply-to: KGZXK@ASUACAD.BITNET's message of 25 Aug 92 01:12:34 GMT
  13.  
  14. In article <92237.181234KGZXK@ASUACAD.BITNET> KGZXK@ASUACAD.BITNET (Zafer KADI) writes:
  15.  
  16.    The standard Fortran 77 does not except this kind of notation.
  17.  
  18.    WRITE(6,*)(A)
  19.  
  20.    Most of the compiler except it, but you may have problems with some.
  21.  
  22. ANSI FORTRAN 77 does indeed accept (not "except") a statement like:
  23.  
  24.     WRITE (6,*) (A)
  25.  
  26. What it doesn't accept is:
  27.  
  28.     READ (6,*) (A)
  29.  
  30. The reason is that an output-list-item may be an expression, while an
  31. input-list-item may not.
  32. --
  33.  
  34. James Craig Burley, Software Craftsperson    burley@gnu.ai.mit.edu
  35. Member of the League for Programming Freedom (LPF)
  36.