Path: utzoo!mnetor!tmsoft!torsqnt!lethe!yunexus!ists!helios.physics.utoronto.ca!news-server.csri.toronto.edu!cs.utexas.edu!hellgate.utah.edu!csn!pikes!aspen.craycos.com!pmk From: pmk@craycos.com (Peter Klausler) Newsgroups: comp.lang.fortran Subject: SAVE and DATA Message-ID: <1991Feb19.163148.7204@craycos.com> Date: 19 Feb 91 16:31:48 GMT Organization: Cray Computer Corporation Lines: 15 Last week, I posted a note stating that DATA-initialized variables do not require a SAVE statement to survive between invocations of a subprogram. Several respondents and e-mail correspondents have pointed out to me that this is NOT the case in the '77 standard. (There's nothing like posting misinformation to flush old friends out of the woodwork. You may assume that to be my motive the next time I'm wrong...) The relevant paragraphs are those at the end of page 8-11 in the standard. I did peruse the standard before posting, but missed this text. My confusion stemmed from having worked with (and on) implementations in which DATA initialization causes static storage to be used for a variable. I would like to know of implementations of Fortran in which one can actually get into trouble by assuming DATA implies SAVE in one's program, and why, in terms of the implementation.