home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.edu:1397 comp.lang.fortran:3268
- Newsgroups: comp.edu,comp.lang.fortran
- Path: sparky!uunet!elroy.jpl.nasa.gov!usc!sol.ctr.columbia.edu!avogadro.barnard.columbia.edu!shenkin
- From: shenkin@avogadro.barnard.columbia.edu (Peter S. Shenkin)
- Subject: Re: Small Language Wanted
- Organization: Dept. of Chem, Barnard College, Columbia U, New York
- References: <1992Aug25.095623.18808@news.Hawaii.Edu> <8749@amsaa-cleo.brl.mil> <1992Aug28.161000.6930@newshost.lanl.gov>
- Message-ID: <1992Aug28.200552.28137@ctr.columbia.edu>
- Distribution: na
- Sender: news@ctr.columbia.edu (The Daily Lose)
- Keywords: modular programming
- Date: Fri, 28 Aug 1992 20:05:52 GMT
- X-Posted-From: avogadro.barnard.columbia.edu
- X-Posted-Through: sol.ctr.columbia.edu
- Lines: 24
-
- In article <1992Aug28.161000.6930@newshost.lanl.gov> jlg@cochiti.lanl.gov (Jim Giles) writes:
- >
- >semantically, a WHILE loop *IS* the following:
- >
- > 10 IF (cond) THEN !WHILE
- > ... body of loop ...
- > GOTO 10
- > ENDIF !END WHILE
- >
- >Proper commentary will elucidate this further, and you should never
- >use the label as the target of any *other* GOTO.
-
- The authors of "Numerical Recipes" observed that it is not the GOTO that
- is the problem -- it is the label. When you see a GOTO, you know exactly
- what is supposed to happen. But when you see a label, a branch to it could
- have come from anywhere. Using GOTOs and labels as carefully as implied
- by Jim's last comment is one trick to writing clean, structured Fortran.
-
- -P.
- --
- ************************f*u*cn*rd*ths*u*cn*gt*a*gd*jb*************************
- Peter S. Shenkin, Department of Chemistry, Barnard College, New York, NY 10027
- (212)854-1418 shenkin@avogadro.barnard.columbia.edu shenkin@cunixf.BITNET
- ******************** The singular of "media" is "medium". ********************
-