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,770 of 5,127    |
|    Thomas Koenig to Lynn McGuire    |
|    Re: Is there a way in Fortran to designa    |
|    21 Oct 24 05:41:22    |
   
   From: tkoenig@netcologne.de   
      
   Lynn McGuire schrieb:   
      
   > I include all of my common blocks as files to stop typos.   
      
   That is surely an old technique, but only really works to 100%   
   if you adhere to some additional style constraints in your code.   
      
   Consider   
      
   foo.f:   
      
    DIMENSION A(10)   
    INCLUDE "common.inc"   
      
   bar.f:   
      
    INCLUDE "common.inc"   
      
   (without the DIMENSION)   
      
   common.inc:   
      
    COMMON /COMMON/ A   
      
   --- 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