Article View: comp.lang.misc
Article #2547Re: Look, Ma, I can dynamically compose functions in C!
From: Ozan Yigit
Date: Tue, 25 Dec 1990 05:46
Date: Tue, 25 Dec 1990 05:46
35 lines
1634 bytes
1634 bytes
In article <19468:Dec2100:23:0790@kramden.acf.nyu.edu> brnstnd@kramden.acf.nyu.edu (Dan Bernstein) writes: >Of course, a more complete implementation would manage struct fun >storage, possibly with garbage collection. Yep. A more complete implementation would effectively be an interpreter that can handle arbitrary-depth function composition. This must be what you mean when you talk about real-world programming. Sigh. I believe the original question had something like scheme in mind, when referring to first-class-functions and composition. In scheme, we write (define compose (lambda (f g) (lambda (x) (f (g x))))) this looks uninteresting, except that the innermost (composing) closure preserves its scope information (environment) as a part of this composition as well. [Jeff Dalton elequently addressed this issue which has partly to do with the definition of the term. Jeff??] >You were saying? Hmm. oz --- Where the stream runneth smoothest, | Internet: oz@nexus.yorku.ca the water is deepest. - John Lyly | UUCP: utzoo/utai!yunexus!oz
Technical Details
Message-ID:
<19390@yunexus.YorkU.CA>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!tmsoft!torsqnt!lethe!yunexus!ozReferences:
<20@garth.UUCP> <27534.276e5bd3@kuhub.cc.ukans.edu> <1990Dec19.222059.6878@mathrt0.math.chalmers.se> <19468:Dec2100:23:0790@kramden.acf.nyu.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!tmsoft!torsqnt!lethe!yunexus!oz From: oz@yunexus.yorku.ca (Ozan Yigit) Newsgroups: comp.lang.misc Subject: Re: Look, Ma, I can dynamically compose functions in C! Message-ID: <19390@yunexus.YorkU.CA> Date: 25 Dec 90 05:46:25 GMT References: <20@garth.UUCP> <27534.276e5bd3@kuhub.cc.ukans.edu> <1990Dec19.222059.6878@mathrt0.math.chalmers.se> <19468:Dec2100:23:0790@kramden.acf.nyu.edu> Sender: news@yunexus.YorkU.CA Organization: York U. Communications Research & Development Lines: 35