home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / fortran / 3029 < prev    next >
Encoding:
Internet Message Format  |  1992-08-13  |  2.2 KB

  1. Path: sparky!uunet!mcsun!uknet!jet!cpg
  2. From: cpg@jet.uk (Dr Chris P Gatcombe)
  3. Newsgroups: comp.lang.fortran
  4. Subject: Re: What extensions do you use?
  5. Message-ID: <1992Aug14.081836.17299@jet.uk>
  6. Date: 14 Aug 92 08:18:36 GMT
  7. References: <1992Aug13.004448.4409@ccu1.aukuni.ac.nz>
  8. Organization: Joint European Torus
  9. Lines: 41
  10.  
  11. In <1992Aug13.004448.4409@ccu1.aukuni.ac.nz> ecmtwhk@ccu1.aukuni.ac.nz (Thomas Koenig) writes:
  12.  
  13. >What extensions do you usually use when programming FORTRAN? I try to
  14. >restrict myself to two: Use of INCLUDE statements, without which COMMON
  15. >blocks and PARAMETER statements would be almost impossible, and
  16. >IMPLICIT none. Altough the temptation to use identifiers longer than 6
  17. >letters can be overwhelming, I usually don't because one system I work
  18. >on does not support them; same goes for use of lowercase letters.
  19.  
  20. >How about you?
  21. >-- 
  22. >Thomas Koenig, ecmtwhk@ccu1.aukuni.ac.nz, ib09@rz.uni-karlsruhe.de
  23.  
  24. I would _ALWAYS_ try to use IMPLICIT NONE, if it is available on the
  25. compiler (though some compilers allow IMPLICIT UNDEFINED as an
  26. alternative). I like to have all my variables defined explicitly
  27. (I _HATE_ implicit typing). If this was not available, there may be
  28. command-line options to warn about undefined variables.
  29.  
  30. INCLUDE 'file' is useful as mentioned for definitions of COMMON blocks
  31. and PARAMETERs. I certainly use this in several codes.
  32.  
  33. I would disagree with the above about using 6-character names. I find
  34. that such variable names make the code very cryptic to read. This
  35. is a facility I would try to use on every system.
  36.  
  37. I'm probably lucky in that my programs don't get ported to lots
  38. of different machines with their quirky compilers :-)
  39.  
  40. Chris.
  41. -- 
  42. Dr. Chris Gatcombe
  43. Tessella Support Services plc,       Room K1/0/31,
  44. 3 Vineyard Chambers, Abingdon,       JET Joint European Undertaking,
  45. Oxfordshire OX14 3PX, UK.            Abingdon, Oxfordshire OX14 3EA, UK.
  46. Phone:  (+44) (0235) 555511          Phone:  (+44) (0235) 464490
  47. Fax:    (+44) (0235) 553301          Fax:    (+44) (0235) 464766
  48. E-mail: gatc@tessella.co.uk          E-mail: cpg@jet.uk
  49.         gatc@tss.uucp
  50. - Disclaimer: Please note that the above is a personal view and should not 
  51.   be construed as an official comment from the JET project.
  52.