Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.fortran    |    Putting John Backus on a giant pedestal    |    5,127 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 4,713 of 5,127    |
|    Lynn McGuire to Lawrence D'Oliveiro    |
|    Re: Is there a way in Fortran to designa    |
|    03 Oct 24 23:52:02    |
      From: lynnmcguire5@gmail.com              On 10/3/2024 5:34 PM, Lawrence D'Oliveiro wrote:       > On Thu, 3 Oct 2024 17:13:40 -0500, Lynn McGuire wrote:       >       >> On 10/3/2024 5:08 PM, Lawrence D'Oliveiro wrote:       >>>       >>> On Thu, 3 Oct 2024 14:32:28 -0500, Lynn McGuire wrote:       >>>       >>>> I have 197 common blocks included from dedicated files and a massive       >>>> number of equivalences all over the place.       >>>       >>> Try getting rid of at least some of them, by using “contains”.       >>       >> What does "contains" do ? My knowledge of Fortran stopped at F77+.       >       > Pick up a Fortran-90-or-later spec. This is not your father’s Fortran any       > more. “contains” lets you put subroutines and functions directly in the       > main program, so they can refer directly to program globals instead of       > having to go through “common” blocks.       >       > I posted an example of modernized Fortran code right here a few months       > ago, and I see there’s a comment from you on it, so you must have seen it.              Ah yes, the Lunar Lander game.              I played that game back in 1971 on the operator console teletype for a       Univac 1108. Was a blast. Ran through an entire roll of paper that       night while my Dad was chasing a bug in the software that I have been       working on since 1975.              Here is something about the Fortran Contains:        https://stackoverflow.com/questions/35808053/contains-statement              Lynn              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca