Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!gatech!prism!vsserv!stat!stat.fsu.edu!mccalpin From: mccalpin@masig3.ocean.fsu.edu (John D. McCalpin) Newsgroups: comp.lang.fortran Subject: Re: Is this a correct Fortran 88 subroutine? Message-ID: Date: 8 Sep 89 20:57:48 GMT References: <790hallidayd@yvax.byu.edu> <14040@lanl.gov> Sender: news@stat.fsu.edu Organization: Supercomputer Computations Research Institute Lines: 32 In message <14040@lanl.gov> jlg@lanl.gov (Jim Giles) writes: >I have always favored a syntax in which block names _always_ appear >on the left: > IF: IF( L ) THEN > ... > IF: ELSE > ... > IF: ENDIF >Here, the visual ambiguity is gone (there never was any computational >ambiguity).... [ etc ] I prefer putting the construct names on the right, but separating them with a colon, as in label: IF ( L ) THEN statement 1 ELSE: label statement 2 ENDIF: label Of course, in the new syntax, you are free to use a ! between the ELSE/ENDIF and the label to remove any visual ambiguity, but this approach allows the labels to provide info to the compiler --- as could be required for CYCLE and EXIT statements inside nested loops. I think I made some comment about this in my formal response to the original proposed draft --- but that was so long ago that I can't remember.... -- John D. McCalpin - mccalpin@masig1.ocean.fsu.edu mccalpin@scri1.scri.fsu.edu mccalpin@delocn.udel.edu