Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!mips!wdl1!wdl30!ekman From: ekman@wdl30.wdl.loral.com (Donald Ekman) Newsgroups: comp.lang.fortran Subject: Re: Order of variables in EQUIVALENCE statement Message-ID: <1991Jun18.195315.18248@wdl1.wdl.loral.com> Date: 18 Jun 91 19:53:15 GMT References: <99850@lll-winken.LLNL.GOV> Sender: news@wdl1.wdl.loral.com Distribution: na Organization: Loral Western Development Labs Lines: 18 In article <99850@lll-winken.LLNL.GOV> lindner@ncis.llnl.gov (Curt Lindner) writes: >I've been in the the process of converting some code using 'f77cvt' on >a SUN Sparcstation. > >The conversion is swapping the variables in the equivalence statements, >which it shouldn't do, as far as I can tell. > >Does this have an adverse affect on the results of the code, i.e. does the >first variable take on the value of the second, or vice versa?? > Since the equivalence statement simply causes each of the variable names to reference the same storage location, the order is irrelevant, I believe. Don -- Donald E. Ekman, Space Systems/Loral, Palo Alto, CA ekman@wdl30.wdl.loral.com