home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / fortran / 4670 < prev    next >
Encoding:
Text File  |  1992-12-11  |  1.7 KB  |  39 lines

  1. Newsgroups: comp.lang.fortran
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!europa.asd.contel.com!gatech!destroyer!cs.ubc.ca!news.UVic.CA!sol.UVic.CA!klassen
  3. From: klassen@sol.UVic.CA (Melvin Klassen)
  4. Subject: Re: How common are long variable names?
  5. Message-ID: <1992Dec11.221459.10841@sol.UVic.CA>
  6. Sender: news@sol.UVic.CA
  7. Nntp-Posting-Host: sol.uvic.ca
  8. Organization: University of Victoria, Victoria, B.C. CANADA
  9. Date: Fri, 11 Dec 92 22:14:59 GMT
  10. Lines: 27
  11.  
  12. Dr. Kenneth H. Fairfield <fairfield@slacvx.SLAC.Stanford.EDU> writes:
  13. >    Hurray for IBM's VS Fortran!!!  31-character identifiers allowed,
  14. >but if you should be so bold as to use an identifier > 7 characters long
  15. >for a global symbol (i.e., SUBROUTINE, FUNCTION, ENTRY, BLOCK DATA, or
  16. >COMMON block name), it takes the first 4 characters and concatenates
  17. >them with the last 3 characters of the (long) identifier to generate the
  18. >external name.  Think about the following (generic) utilities:
  19. >
  20. >        SUBROUTINE UTL_GET_DATA
  21. >        SUBROUTINE UTL_PUT_DATA
  22. >        SUBROUTINE UTL_CLEAR_DATA
  23.  
  24. If you CALL more than one of these routines from a single program-unit,
  25. the compiler reports the error-message:
  26.    ILX1454I  Two or more external symbols are not unique.
  27.              Check the "external symbol report".
  28.  
  29. The ICA (InterCompilation Analyzer) reports the diagnostic:
  30.    ILX0067I  Conflicting name usage -- the name, UTL_ATA has been used
  31.              as the name of a subroutine in UTL_ATA (compilation 2) and
  32.              as the name of a subroutine in UTL_ATA (compilation 3).
  33.  
  34. The compiler is doing as best as it can!
  35. It's the IBM linker/loader which is the bottle-neck,
  36. due to the restriction to 8-character external names,
  37. so don't blame the IBM FORTRAN-development group
  38. for a problem which they have no authority to fix!
  39.