Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!mentor.cc.purdue.edu!s.cc.purdue.edu!ags From: ags@s.cc.purdue.edu (Dave Seaman) Newsgroups: comp.lang.fortran Subject: Re: Question on DATA and SAVE. Message-ID: <3748@s.cc.purdue.edu> Date: 30 Jan 89 14:42:59 GMT References: <2482@garth.UUCP> Reply-To: ags@s.cc.purdue.edu (Dave Seaman) Organization: Purdue University Lines: 14 In article <2482@garth.UUCP> smryan@garth.UUCP (s m ryan) writes: >Does anyone have an opinion or knowledge of whether it is meaningful to >initialise a local variable of a subprogram with a DATA but not SAVE the >variable? It would seem the variable can become undefined on entry so that >the DATA would be ignored. Only if the variable was redefined or became undefined at some earlier time. If the variable was never modified, then the DATA remains in effect throughout the life of the program. This would be useful for setting up constant arrays for table lookup. See the last paragraph of section 8.9. -- Dave Seaman ags@j.cc.purdue.edu