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