Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ukma!gatech!mcnc!ecsvax!uncw!session From: session@uncw.UUCP (Zack Sessions) Newsgroups: comp.lang.fortran Subject: Re: FORTRAN porting question Message-ID: <330@uncw.UUCP> Date: 4 Apr 89 14:15:31 GMT References: <1868@quanta.eng.ohio-state.edu> Reply-To: session@uncw.UUCP (Zack Sessions) Distribution: usa Organization: Math/Computer Science Department Lines: 18 In article <1868@quanta.eng.ohio-state.edu> kaul@icarus.eng.ohio-state.edu (Rich Kaul) writes: > >... The code I have to port has lots of loops like: > IF (I.EQ.J) GOTO 1000 > ... > DO 1000 K=1,77 > ... > 1000 CONTINUE > >My question is, how should this behave? ... I would think that if the code took the goto 1000, that the loop would not be executed, and control would simply pass to the next statement after the continue. I agree, it is not very clean coding, and would personally have done it differently. The statement number referenced in the do statement does not have to be a continue statement, it can be any executable statement. Zack Sessions