Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!ll-xn!mit-eddie!uw-beaver!cornell!rochester!PT.CS.CMU.EDU!sei!sei.cmu.edu!firth From: firth@sei.cmu.edu (Robert Firth) Newsgroups: comp.lang.fortran Subject: Re: Modifying iteration variables in DO loops Message-ID: <4026@aw.sei.cmu.edu> Date: 2 Feb 88 15:20:12 GMT References: <1309@nmtsun.nmt.edu> Sender: netnews@sei.cmu.edu Reply-To: firth@bd.sei.cmu.edu.UUCP (Robert Firth) Organization: Carnegie-Mellon University, SEI, Pgh, Pa Lines: 12 Keywords: X3 standard FORTRAN 77 In article <1309@nmtsun.nmt.edu> john@nmtsun.nmt.edu (John Shipman) writes: >In section 11.10 of X3.9-1978, the FORTRAN 77 standard (pp. 11-5 to >11-9), there is no statement about prohibiting the modification of a >DO variable within a loop. ANSI X3.9-1978 11.10.5: "Except by the incrementation described in 11.10.7, the DO-variable of the DO-loop may neither be redefined nor become undefined during execution of the range of the DO-loop" Happy Groundhog Day!