home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / fortran / 4431 < prev    next >
Encoding:
Text File  |  1992-11-23  |  2.0 KB  |  56 lines

  1. Newsgroups: comp.lang.fortran
  2. Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!uwm.edu!ux1.cso.uiuc.edu!news.cso.uiuc.edu!uimrl7.mrl.uiuc.edu!ercolessi
  3. From: ercolessi@uimrl3.mrl.uiuc.edu (furio ercolessi)
  4. Subject: Re: Understanding ENTRY and Recursion (was Re: ENTRY in main)
  5. References: <By4xpo.FG@iapa.uucp%mailhost.ecn.uoknor.edu> <BURLEY.92Nov23121000@apple-gunkies.gnu.ai.mit.edu>
  6. Message-ID: <By6uw1.LoJ@news.cso.uiuc.edu>
  7. Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
  8. Reply-To: ercolessi@uimrl3.mrl.uiuc.edu (furio ercolessi)
  9. Organization: MRL - UIUC
  10. Date: Mon, 23 Nov 1992 21:40:46 GMT
  11. Lines: 43
  12.  
  13. In article <BURLEY.92Nov23121000@apple-gunkies.gnu.ai.mit.edu>, burley@apple-gunkies.gnu.ai.mit.edu
  14. (Craig Burley) writes:
  15.  
  16. [... candidate for "best post of the month" in c.l.f. ... ]
  17.  
  18. your tutorial on entry was great!
  19. only one thing left me a bit puzzled:
  20.  
  21. |>    REAL FUNCTION FOO(I)
  22. |>    FOO = FLOAT (I)
  23. |>    I = I + 1
  24. |>    END
  25. |>
  26. |>But, more specifically, how would this work?
  27. |>
  28. |>    READ *, I, FOO(I)
  29. |>    END
  30. |>
  31. |>Here, only after the value I is read, and while the I/O is still active,
  32. |>do we know what to pass to FOO for preevaluation.
  33.  
  34. i wouldn't have dreamed of putting a function in a READ list.
  35. do you really mean FOO to be a function? what's the purpose
  36. of the programmer? FOO returns a value, and what is the READ
  37. supposed to do with this value? replace it with another one,
  38. then throw away anything? it is not stupid after all,
  39. since FOO may do useful things in the meanwhile and we
  40. may not need its result.  alas, i have never seen nor done
  41. such a thing.
  42.  
  43. or do you perhaps mean FOO to be an array element here?
  44.  
  45. |>Believe me, this kind of thing gives all sorts of problems to those of
  46. |>us who implement Fortran compiler systems, especially on weird
  47. |>architectures or under other such constraints!
  48.  
  49. we have no difficulty in believing you
  50.  
  51. --
  52. Furio Ercolessi
  53. Materials Research Laboratory           |   Intl School for Advanced Studies
  54. Univ. of Illinois at Urbana-Champaign   |   Trieste, Italy
  55. furio@uiuc.edu                          |   furio@sissa.it
  56.