Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!ucla-cs!math.ucla.edu!pmontgom From: pmontgom@oak.math.ucla.edu Newsgroups: comp.lang.fortran Subject: Adjacent apostrophe edit descriptors Keywords: format, f77, apostrophe Message-ID: <2127@sunset.MATH.UCLA.EDU> Date: 5 Jan 90 04:12:14 GMT Sender: news@MATH.UCLA.EDU Reply-To: pmontgom@MATH.UCLA.EDU () Distribution: na Organization: UCLA Mathematics Department Lines: 34 program test print 10 10 format (' Does an apostrophe appear here' ' or here', '.') C There is no comma separating the first two C apostrophe edit descriptors in this format statement. C The SUN 3 and SPARC compilers accept it anyhow, C and print the output without any apostrophes. C The Alliant compiler (V4.2.40) also accepts it, C but produces an apostrophe after the first "here". C Neither compiler produces one after the second "here". C Lines 26-34 on p. 13-2 of ANSI X3.9-1978 FORTRAN 77 C say the comma may be omitted before and after a slash C or colon edit descriptor, but do not allow it to be C omitted in this instance. Lines 30-32 on p. 13-5 say C "Within the (apostrophe edit) field, two consecutive C apostrophes with no intervening blanks are counted as a C single apostrophe", but says nothing about intervening C blanks (as here). C The statement seems nonstandard (unless it means C to output everything between the first apostrophe and the C last, including both intervening apostrophes and the blanks). C However, when I try the -ansi option on the SPARC, or C the -standard option on the Alliant, the only diagnostic C either compiler gives is the presence of lowercase letters. end -------- Peter Montgomery pmontgom@MATH.UCLA.EDU Department of Mathematics, UCLA, Los Angeles, CA 90024