home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / fortran / 4944 < prev    next >
Encoding:
Text File  |  1993-01-08  |  1.3 KB  |  49 lines

  1. Newsgroups: comp.lang.fortran
  2. Path: sparky!uunet!cs.utexas.edu!hermes.chpc.utexas.edu!michael
  3. From: michael@chpc.utexas.edu (Michael Lemke)
  4. Subject: Re: Structure and Data Statement Usage
  5. Message-ID: <1993Jan8.185745.8391@chpc.utexas.edu>
  6. Organization: The University of Texas System - CHPC
  7. References: <7876@dove.nist.gov>
  8. Date: Fri, 8 Jan 93 18:57:45 GMT
  9. Lines: 38
  10.  
  11. In article <7876@dove.nist.gov> fred@poly2.nist.gov (Frederick R. Phelan Jr.) writes:
  12. >Heres a small code prototype of my problem:
  13. >
  14. >      program test_35
  15. >
  16. >      structure /geom/
  17. >        integer ngprops
  18. >      end structure
  19. >      record /geom/ g1,g2
  20. >
  21. >c     uncomment these for compiler havoc
  22. >c      data g1.ngprops /3/
  23. >c      data g2.ngprops /5/
  24. >
  25. >c     these are ok when uncommented
  26. >c     g1.ngprops=3
  27. >c     g2.ngprops=5
  28. >
  29. [experiments deleted]
  30. >
  31. >How can you use structure variables in data statements?
  32.  
  33. You can't.  Sorry.
  34.  
  35. >
  36. >PS: This is on a Silicon Graphics machine.
  37. >
  38. >PPS: Anyone care to comment on how common f77 extensions
  39. >     like structures have become on other platforms? 
  40.  
  41. As far as I know STRUCTURE in the form you use it here is a VMS
  42. invention, which is also found on Suns.  Cray doesn't have it.
  43.  
  44. Michael
  45. -- 
  46. Michael Lemke
  47. Astronomy, UT Austin, Texas
  48. (michael@io.as.utexas.edu or UTSPAN::UTADNX::IO::MICHAEL [SPAN])
  49.