Xref: utzoo comp.lang.pascal:5231 comp.lang.fortran:4583 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!usc!ucsd!ames!skipper!elxsi!maine From: maine@elxsi.dfrf.nasa.gov (Richard Maine) Newsgroups: comp.lang.pascal,comp.lang.fortran Subject: Re: Gotos are okay, but what about COME-FROM's?? Message-ID: Date: 25 Jan 91 06:31:15 GMT References: <1991Jan24.112445.3829@kcbbs> <1991Jan25.175604.34@csc.canterbury.ac.nz> Sender: news@skipper.dfrf.nasa.gov Organization: NASA Dryden, Edwards, Cal. Lines: 26 In-reply-to: phys169@csc.canterbury.ac.nz's message of 25 Jan 91 05:15:17 GMT On 25 Jan 91 05:15:17 GMT, phys169@csc.canterbury.ac.nz said: phys169> This is all getting very silly. Reminds me of the COME-FROM phys169> that was suggested after an even sillier discussion of phys169> goto's. Anyone remember that?? Would you believe that I've used a Fortran compiler that actually implemented the comefrom statement? It was not a documented feature, just a bit of insider humor on the part of the compiler writers. On a hint, I tried it out and it really worked. (No, I was not silly enough to use it on "real" programs, though for a while I kept a little sample around to amuse people with). I think it disappeared soon after a customer submitted a bug report relating to it! If I recall, the bug report had something to do with the optimizer not recognizing loops implemented with comefroms, making them run slower than loops done with gotos or do statements. (I may not have this part 100% right). The machine was an Elxsi 6400, which we still have (yes its the one my email address below shows). I forget the version of the compiler, but it was probably about 3-4 years ago. -- Rich Maine maine@elxsi.dfrf.nasa.gov