Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!think!ames!ucbcad!ucbvax!AI.AI.MIT.EDU!JAR From: JAR@AI.AI.MIT.EDU (Jonathan A Rees) Newsgroups: comp.lang.scheme Subject: data structures <--> functions Message-ID: <293963.871203.JAR@AI.AI.MIT.EDU> Date: Thu, 3-Dec-87 00:04:53 EST Article-I.D.: AI.293963.871203.JAR Posted: Thu Dec 3 00:04:53 1987 Date-Received: Sun, 6-Dec-87 09:23:20 EST Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 19 Date: 2 Dec 87 19:14:11 GMT From: johnson at mimsy.umd.edu (Greg Johnson) I tried opening a file for writing, writing the object out, closing the file, opening it for reading, and reading the object in using various read primitives, but that didn't work. Try something like (define evaluate (lambda (expression) (call-with-output-file "temp" (lambda (port) (write `(define temp ,expression) port))) (load "temp") temp)) if you can manage to do so without making yourself ill.