home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!usc!news.aero.org!doner
- From: doner@aero.org (John Doner)
- Newsgroups: comp.lang.scheme
- Subject: Re: Something I don't understand about bindings
- Date: 18 Dec 1992 00:46:04 GMT
- Organization: The Aerospace Corporation, El Segundo, CA
- Lines: 31
- Distribution: world
- Message-ID: <1gr70cINN7bu@news.aero.org>
- References: <HANCHE.92Dec15134343@ptolemy.ams.sunysb.edu> <1glic3INNq5b@news.aero.org> <MAX.92Dec16143412@Kolmogorov.gac.edu>
- NNTP-Posting-Host: armadillo.aero.org
-
- In article <MAX.92Dec16143412@Kolmogorov.gac.edu> Max Hailperin <max@nic.gac.edu> writes:
- >In article <1glic3INNq5b@news.aero.org> doner@Aero.org (John Doner) writes:
- >
- > ... On the other hand, his original define (again according to r4rs) is
- > equivalent to
- >
- > (define timed-prime-test
- > (lambda (n)
- > (define start-time (runtime))
- > (define found-prime? (prime? n))
- > .
- > .
- > .
- > ))
- >
- > So the sequence of expressions beginning with the inner defines is
- > the body of a lambda expression. And r4rs says the expressions in
- > the body of a lambda expression are to be evaluated sequentially....
- >
- >Ahhh..., but they *aren't* expressions. Read R4RS carefully and you
- >will find that a definition is not an expression. Thus the fact that
- >the body *expressions* are evaluated in order is irrelevant, and
-
- U R Right! Thanks. Coming from the culture of logicians, I was used to the
- term "expression" referring to any sequence of symbols of the language, whereas
- it has a much more narrow meaning here.
-
- John
-
-
-
-