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

  1. Newsgroups: comp.lang.fortran
  2. Path: sparky!uunet!stanford.edu!unixhub!slacvx.slac.stanford.edu!fairfield
  3. From: fairfield@slacvx.slac.stanford.edu
  4. Subject: Re: Need help with named common blocks
  5. Message-ID: <1992Dec15.103428.1@slacvx.slac.stanford.edu>
  6. Lines: 28
  7. Sender: news@unixhub.SLAC.Stanford.EDU
  8. Organization: Stanford Linear Accelerator Center
  9. References: <jumper.724304615@fritz.catt.ncsu.edu> <1992Dec13.211623.1@slacvx.slac.stanford.edu> <Bz9xzs.F9n@news.cso.uiuc.edu>
  10. Distribution: comp
  11. Date: Tue, 15 Dec 1992 18:34:28 GMT
  12.  
  13. In article <Bz9xzs.F9n@news.cso.uiuc.edu>, ercolessi@uimrl3.mrl.uiuc.edu (furio ercolessi) writes:
  14. > In article <1992Dec13.211623.1@slacvx.slac.stanford.edu>, fairfield@slacvx.slac.stanford.edu
  15. > writes:
  16. > |> [...]
  17. > |>... something like CHAR(80) is most likely declared later to be
  18. > |>of type CHARACTER*1 (or BYTE or INTEGER*1 or LOGICAL*1)...  
  19. > I think that the standard does not allow mixing character and non-character
  20. > variables in the same common block. Correct me if I am wrong.
  21.  
  22.     Yes, non-standard, but the original poster was converting code from 
  23. Fortran to C.  The issue of whether the exsting code was standard conforming
  24. is moot.
  25.  
  26.     Others have pointed out that the original query could be interpreted in
  27. two ways: different (single) declarations of a given named common in 
  28. different program sections (my brash interpretation) versus a second
  29. COMMON statement for the same named common in a single program section.
  30. It would be nice if the original poster could clarify the situation so
  31. we could put this thread to rest...
  32.  
  33.         -Ken
  34. -- 
  35.  Dr. Kenneth H. Fairfield    |  Internet: Fairfield@Slac.Stanford.Edu
  36.  SLAC, P.O.Box 4349, MS 98   |  DECnet:   45537::FAIRFIELD (45537=SLACVX)
  37.  Stanford, CA   94309        |  BITNET    Fairfield@Slacvx
  38.  ----------------------------------------------------------------------------
  39.  These opinions are mine, not SLAC's, Stanford's, nor the DOE's...
  40.