home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / fortran / 3164 < prev    next >
Encoding:
Internet Message Format  |  1992-08-25  |  1.2 KB

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!mips!darwin.sura.net!wupost!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!caen!hellgate.utah.edu!lanl!cochiti.lanl.gov!jlg
  2. From: jlg@cochiti.lanl.gov (Jim Giles)
  3. Newsgroups: comp.lang.fortran
  4. Subject: Re: Does your f77 compiler accepts this?
  5. Message-ID: <1992Aug26.001710.24693@newshost.lanl.gov>
  6. Date: 26 Aug 92 00:17:10 GMT
  7. References: <2873@tansei1.tansei.cc.u-tokyo.ac.jp> <BURLEY.92Aug24145148@geech.gnu.ai.mit.edu> <1992Aug25.153937.26559@newshost.lanl.gov> <BtJyIM.1p2@mentor.cc.purdue.edu> <1992Aug25.213754.7260@ibr.cs.tu-bs.de>
  8. Sender: news@newshost.lanl.gov
  9. Organization: Los Alamos National Laboratory
  10. Lines: 17
  11.  
  12. In article <1992Aug25.213754.7260@ibr.cs.tu-bs.de>, i2041101@rzphy1.rz.tu-bs.de (Paulini) writes:
  13. |> [...]
  14. |> (X,X) is a constant if 'X' is defined in a PARAMETER-declaration. Then
  15. |> 
  16. |>     WRITE (*,*) (X,X)
  17. |> 
  18. |> is legal, otherwise not.
  19.  
  20. Not quite.  A complex constructor of the pattern `(a,b)' is legal only
  21. if `a' and `b' are *both* literals.  Yes, the extension of allowing them
  22. to be variables (or at least parameters) is desirable, but the committee 
  23. chose not to do so.  This constraint is still in Fortran 90.
  24.  
  25. Too bad, I thought the above statement should be legal too.
  26.  
  27. -- 
  28. J. Giles
  29.