home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!jvnc.net!yale.edu!yale!gumby!destroyer!news.iastate.edu!iscsvax.uni.edu!bohy6489
- From: bohy6489@iscsvax.uni.edu
- Newsgroups: comp.edu
- Subject: Re: Small Language Wanted
- Message-ID: <1992Aug28.083237.6312@iscsvax.uni.edu>
- Date: 28 Aug 92 13:32:37 GMT
- References: <1992Aug25.095623.18808@news.Hawaii.Edu> <8749@amsaa-cleo.brl.mil>
- Followup-To: comp.edu
- Distribution: na
- Organization: University of Northern Iowa
- Lines: 35
-
- In article <8749@amsaa-cleo.brl.mil>, mcohen@amsaa-cleo.brl.mil (Marty Cohen) writes:
- > In Fortran 77 there is no way to code a while loop without using a GOTO.
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
- First off, the arguement was about *computed* GOTO's, which are *nothing* like
- your average everyday GOTO. Secondly, there are these really cool things
- called COMMENTS (excuse the shout) that allow you to do things like:
-
- C while (i <= 3) do
-
- 5 IF (I .LE. 3) THEN GOTO 10
- GOTO 20
- 10 (insert your favorite thing to do if I <= 3 here)
- (more loop body)
- GOTO 5
- 20 CONTINUE
-
- C Isn't that cool?
-
- In fact, even though I have taught FORTRAN in the past using VMS FORTRAN (which
- has DO WHILE loops), I use this. It helps people *SEE* just how these loops
- work, rather than drawing a bunch of arrows on the board or whatever. I always
- followup with DO WHILE, and encourage them to use DO WHILE.
-
- > --
- > Marty Cohen mcohen@brl.mil {uunet|rutgers}!brl!mcohen
- > Custom House Rm 800, Phila. PA 19106 (215)597-8377 Fax (215)597-2240
-
- ===============================================================================
- Jim Bohy | "If you have to ask, you'll
- Graduate Student - Computer Science Education | never know..."
- University of Northern Iowa |
- Cedar Falls, IA 50614 | - Louis Armstrong, when asked
- bohy@att1.uni.edu | what jazz is.
- ===============================================================================
-