Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!newsfeed.kamp.net!newsfeed.kamp.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: blmblm@myrealbox.com Newsgroups: comp.programming Subject: Re: fortran 77 errors Date: 23 Jun 2011 17:32:10 GMT Organization: None Lines: 41 Message-ID: <96hbkqF7dvU2@mid.individual.net> References: <4e025412$0$1945$bbae4d71@news.suddenlink.net> <4e034cda$0$6432$a729d347@news.telepac.pt> <97adnZk4b6wCxJ7TnZ2dnUVZ_tidnZ2d@earthlink.com> X-Trace: individual.net QxeTgfqshDgLBtozTSWemwMZAEzWYBsUGfAWDXFxWWdEfNYBvH X-Orig-Path: not-for-mail Cancel-Lock: sha1:O3UVZXFDw1Ua+n6f0xmkVpel13A= X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Xref: x330-a1.tempe.blueboxinc.net comp.programming:516 In article , Geoff wrote: > On Thu, 23 Jun 2011 08:19:49 -0700, Patricia Shanahan > wrote: > > >On 6/23/2011 7:22 AM, Rui Maciel wrote: > >> Patricia Shanahan wrote: [ snip ] > >To be a bit more precise, I meant "I think Geoff may have confused the > >Fortran statement label rules with the Basic line numbering rules". I > >agree that otherwise the posted code looks more like an attempt at > >Fortran than Basic. > > > > The code was copied from Bill's original post and edited with emacs > which enforced its own rules on formatting. I added the line numbers > because I remembered we had them back in the dim days of college. The > system was an Interdata model 4 and the Fortran was non-standard for > the era. It predated Fortran 77 and was not strict about formatting > output. I wasn't doing any BASIC programming until 1978 or so, on a > TRS-80 for fun. > > FWIW, the code I posted compiles and runs on OS X with gfortran 4.2.1 > build 5664. > For what it's worth, Fortran 77 supports both statement labels *and* line numbers -- the latter being positioned after column 72 and ignored by the compiler. Line numbers were useful back in the punched-card days; diligently numbering all the lines of one's program meant that if one dropped the card deck containing the source code, one could put the cards back in order using a card-sorting machine on the columns (73-80) containing the line numbers. Ah, the not-always-good old days! -- B. L. Massingill ObDisclaimer: I don't speak for my employers; they return the favor.