home bbs files messages ]

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,710 of 5,127   
   Lawrence D'Oliveiro to Lynn McGuire   
   Re: Is there a way in Fortran to designa   
   03 Oct 24 22:34:17   
   
   From: ldo@nz.invalid   
      
   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.   
      
   --- 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