home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.fortran
- 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
- From: klassen@sol.UVic.CA (Melvin Klassen)
- Subject: Re: How common are long variable names?
- Message-ID: <1992Dec11.221459.10841@sol.UVic.CA>
- Sender: news@sol.UVic.CA
- Nntp-Posting-Host: sol.uvic.ca
- Organization: University of Victoria, Victoria, B.C. CANADA
- Date: Fri, 11 Dec 92 22:14:59 GMT
- Lines: 27
-
- Dr. Kenneth H. Fairfield <fairfield@slacvx.SLAC.Stanford.EDU> writes:
- > Hurray for IBM's VS Fortran!!! 31-character identifiers allowed,
- >but if you should be so bold as to use an identifier > 7 characters long
- >for a global symbol (i.e., SUBROUTINE, FUNCTION, ENTRY, BLOCK DATA, or
- >COMMON block name), it takes the first 4 characters and concatenates
- >them with the last 3 characters of the (long) identifier to generate the
- >external name. Think about the following (generic) utilities:
- >
- > SUBROUTINE UTL_GET_DATA
- > SUBROUTINE UTL_PUT_DATA
- > SUBROUTINE UTL_CLEAR_DATA
-
- If you CALL more than one of these routines from a single program-unit,
- the compiler reports the error-message:
- ILX1454I Two or more external symbols are not unique.
- Check the "external symbol report".
-
- The ICA (InterCompilation Analyzer) reports the diagnostic:
- ILX0067I Conflicting name usage -- the name, UTL_ATA has been used
- as the name of a subroutine in UTL_ATA (compilation 2) and
- as the name of a subroutine in UTL_ATA (compilation 3).
-
- The compiler is doing as best as it can!
- It's the IBM linker/loader which is the bottle-neck,
- due to the restriction to 8-character external names,
- so don't blame the IBM FORTRAN-development group
- for a problem which they have no authority to fix!
-