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