home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / fortran / 3500 < prev    next >
Encoding:
Text File  |  1992-09-09  |  1.4 KB  |  34 lines

  1. Newsgroups: comp.lang.fortran
  2. Path: sparky!uunet!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!caen!destroyer!ubc-cs!news.UVic.CA!sol.UVic.CA!klassen
  3. From: klassen@sol.UVic.CA (Melvin Klassen)
  4. Subject: Re: Unix fortran question
  5. Message-ID: <1992Sep9.194007.11324@sol.UVic.CA>
  6. Sender: news@sol.UVic.CA
  7. Nntp-Posting-Host: sol.uvic.ca
  8. Organization: University of Victoria, Victoria, B.C. CANADA
  9. References: <Bu9tsE.HJ0@wpi.WPI.EDU>
  10. Date: Wed, 9 Sep 92 19:40:07 GMT
  11. Lines: 21
  12.  
  13. In article <*> llew@coal.WPI.EDU (Lok C. Lew Yan Voon) writes:
  14. >I'm running an f77 program on dec3100 and dec5000.
  15. >it reads an input file, one of the lines being
  16. >      read(ninp,*) slr2 , slr3 , slr4
  17. >while the corresponding line in the input file is
  18. > 0.0d0,0.0d0,0.0d0;
  19. >Now, can someone tell me whether there's a problem here?
  20.  
  21. Section 13.6 of the ANSI X3.9-1978 FORTRAN 77 standard specifies:
  22.  A __value_separator__ is one of the following:
  23.    (1) a comma, optionally preceded by one or more contiguous blanks
  24.        and optionally followed by one or more contiguous blanks
  25.    (2) a slash, optionally preceded by one or more contiguous blanks
  26.        and optionally followed by one or more contiguous blanks
  27.    (3) one or more contiguous blanks between two constants
  28.        or following the last constant
  29.  
  30. So, your ";" is a non-standard "value-separator".
  31.  
  32. Section 13.6.1 also states "note that the end of a record has the effect
  33. of a blank, except when it appears within a character constant".
  34.